Total Complexity | 5 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | final class AbstractFactory implements ConfigPartInterface |
||
10 | { |
||
11 | const PART_KEY = \Zend\ServiceManager\AbstractFactory\ConfigAbstractFactory::class; |
||
12 | |||
13 | /** |
||
14 | * @var DataProviderInterface |
||
15 | */ |
||
16 | private $dataProvider; |
||
17 | |||
18 | 2 | public function __construct(DataProviderInterface $dataProvider) |
|
19 | { |
||
20 | 2 | $this->dataProvider = $dataProvider; |
|
21 | 2 | } |
|
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | 2 | public function getConfig(): array |
|
32 | ] |
||
33 | ]; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @inheritdoc |
||
38 | */ |
||
39 | 2 | public function getCode(): string |
|
40 | { |
||
41 | 2 | return self::PART_KEY; |
|
42 | } |
||
43 | |||
44 | 2 | private function getEntityClassName(): string |
|
47 | } |
||
48 | |||
49 | 2 | private function getControllerNamespace(): string |
|
54 |