| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 42 | private function getTestEntityGeneratorForEntity(EntityInterface $entity): TestEntityGenerator |
||
| 43 | { |
||
| 44 | if ($this->testEntityGenerator instanceof TestEntityGenerator) { |
||
|
|
|||
| 45 | return $this->testEntityGenerator; |
||
| 46 | } |
||
| 47 | $this->testEntityGenerator = $this->testEntityGeneratorFactory->createForEntityFqn( |
||
| 48 | $entity::getEntityFqn() |
||
| 49 | ); |
||
| 50 | |||
| 51 | return $this->testEntityGenerator; |
||
| 52 | } |
||
| 54 |