Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
10 | class EntityFactoryCreator extends AbstractCreator |
||
11 | { |
||
12 | public const FIND_NAME = 'TemplateEntityFactory'; |
||
13 | |||
14 | public const TEMPLATE_PATH = self::ROOT_TEMPLATE_PATH . '/src/Entity/Factories/' . self::FIND_NAME . '.php'; |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $entityFqn; |
||
19 | |||
20 | public function configurePipeline(): void |
||
21 | { |
||
22 | parent::configurePipeline(); |
||
23 | $this->registerReplaceEntitiesNamespaceProcess(); |
||
24 | $this->registerEntityReplaceName($this->getEntityFqn()); |
||
25 | } |
||
26 | |||
27 | protected function registerReplaceEntitiesNamespaceProcess(): void |
||
28 | { |
||
29 | $process = new ReplaceEntitiesSubNamespaceProcess(); |
||
30 | $process->setEntityFqn($this->getEntityFqn()); |
||
31 | $process->setProjectRootNamespace($this->projectRootNamespace); |
||
|
|||
32 | $this->pipeline->register($process); |
||
33 | } |
||
34 | |||
35 | private function getEntityFqn(): string |
||
38 | } |
||
39 | |||
40 | public function setNewObjectFqnFromEntityFqn(string $entityFqn): self |
||
46 | } |
||
47 | } |
||
48 |