| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | class EntityFactory |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var EntityValidatorFactory |
||
| 12 | */ |
||
| 13 | protected $entityValidatorFactory; |
||
| 14 | |||
| 15 | 16 | public function __construct(EntityValidatorFactory $entityValidatorFactory) |
|
| 18 | 16 | } |
|
| 19 | |||
| 20 | /** |
||
| 21 | * Build a new empty entity with the validator factory preloaded |
||
| 22 | * |
||
| 23 | * @param string $entityFqn |
||
| 24 | * |
||
| 25 | * @return EntityInterface |
||
| 26 | */ |
||
| 27 | 15 | public function create(string $entityFqn): EntityInterface |
|
| 32 |