Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
8 | class EntityRepositoryCreator extends AbstractCreator |
||
9 | { |
||
10 | public const FIND_NAME = 'TemplateEntityRepository'; |
||
11 | public const TEMPLATE_PATH = self::ROOT_TEMPLATE_PATH . '/src/Entity/Repositories/' . self::FIND_NAME . '.php'; |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $entityFqn; |
||
16 | |||
17 | 8 | public function configurePipeline(): void |
|
22 | 8 | } |
|
23 | |||
24 | 8 | protected function registerReplaceEntitiesNamespaceProcess(): void |
|
25 | { |
||
26 | 8 | $process = new ReplaceEntitiesSubNamespaceProcess(); |
|
27 | 8 | $process->setProjectRootNamespace($this->projectRootNamespace); |
|
|
|||
28 | 8 | $process->setEntityFqn($this->getEntityFqn()); |
|
29 | 8 | $this->pipeline->register($process); |
|
30 | 8 | } |
|
31 | |||
32 | 8 | private function getEntityFqn(): string |
|
35 | } |
||
36 | |||
37 | 4 | public function setNewObjectFqnFromEntityFqn(string $entityFqn): self |
|
43 | } |
||
44 | } |
||
45 |