Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
CRAP | |
100.00% |
1 / 1 |
ItemToMediaRelationMigrationTask | |
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
5 | |
100.00% |
1 / 1 |
getUnitProcessor | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getResultSearcher | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getSpawnMigrationConfigService | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getResultFilterFactory | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getMigrationConfigFactory | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | /** |
4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License |
6 | * as published by the Free Software Foundation; under version 2 |
7 | * of the License (non-upgradable). |
8 | * |
9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU General Public License |
15 | * along with this program; if not, write to the Free Software |
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 | * |
18 | * Copyright (c) 2020 (original work) Open Assessment Technologies SA; |
19 | */ |
20 | |
21 | declare(strict_types=1); |
22 | |
23 | namespace oat\taoMediaManager\model\relation\task; |
24 | |
25 | use oat\tao\model\task\migration\AbstractMigrationTask; |
26 | use oat\tao\model\task\migration\service\MigrationConfigFactory; |
27 | use oat\tao\model\task\migration\service\MigrationConfigFactoryInterface; |
28 | use oat\tao\model\task\migration\service\ResultFilterFactory; |
29 | use oat\tao\model\task\migration\service\ResultFilterFactoryInterface; |
30 | use oat\tao\model\task\migration\service\ResultSearcherInterface; |
31 | use oat\tao\model\task\migration\service\ResultUnitProcessorInterface; |
32 | use oat\tao\model\task\migration\service\SpawnMigrationConfigService; |
33 | use oat\tao\model\task\migration\service\SpawnMigrationConfigServiceInterface; |
34 | use oat\taoMediaManager\model\relation\service\ItemToMediaRdsSearcher; |
35 | |
36 | class ItemToMediaRelationMigrationTask extends AbstractMigrationTask |
37 | { |
38 | protected function getUnitProcessor(): ResultUnitProcessorInterface |
39 | { |
40 | return $this->getServiceLocator()->get(ItemToMediaUnitProcessor::class); |
41 | } |
42 | |
43 | protected function getResultSearcher(): ResultSearcherInterface |
44 | { |
45 | return $this->getServiceLocator()->get(ItemToMediaRdsSearcher::class); |
46 | } |
47 | |
48 | protected function getSpawnMigrationConfigService(): SpawnMigrationConfigServiceInterface |
49 | { |
50 | return $this->getServiceLocator()->get(SpawnMigrationConfigService::class); |
51 | } |
52 | |
53 | protected function getResultFilterFactory(): ResultFilterFactoryInterface |
54 | { |
55 | return $this->getServiceLocator()->get(ResultFilterFactory::class); |
56 | } |
57 | |
58 | protected function getMigrationConfigFactory(): MigrationConfigFactoryInterface |
59 | { |
60 | return $this->getServiceLocator()->get(MigrationConfigFactory::class); |
61 | } |
62 | } |