Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
8 | class EntityFixtureCreator extends AbstractCreator |
||
9 | { |
||
10 | public const FIND_NAME = 'TemplateEntityFixture'; |
||
11 | |||
12 | public const TEMPLATE_PATH = self::ROOT_TEMPLATE_PATH . 'tests/Assets/Entity/Fixtures/' . self::FIND_NAME . '.php'; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $entityFqn; |
||
18 | |||
19 | public function configurePipeline(): void |
||
20 | { |
||
21 | parent::configurePipeline(); |
||
22 | $this->registerReplaceEntitiesNamespaceProcess(); |
||
23 | $this->registerEntityReplaceName($this->getEntityFqn()); |
||
24 | } |
||
25 | |||
26 | protected function registerReplaceEntitiesNamespaceProcess(): void |
||
32 | } |
||
33 | |||
34 | protected function getEntityFqn(): string |
||
35 | { |
||
36 | return $this->entityFqn ?? $this->namespaceHelper->getEntityFqnFromFixtureFqn($this->newObjectFqn); |
||
37 | } |
||
38 | |||
39 | public function setNewObjectFqnFromEntityFqn(string $entityFqn): self |
||
45 | } |
||
46 | } |
||
47 |