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