| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 11 | class TemplateEntityDtoFactory |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var DtoFactory |
||
| 15 | */ |
||
| 16 | private $dtoFactory; |
||
| 17 | |||
| 18 | public function __construct(DtoFactory $dtoFactory) |
||
| 19 | { |
||
| 20 | $this->dtoFactory = $dtoFactory; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function create(): TemplateEntityDto |
||
| 24 | { |
||
| 25 | return $this->dtoFactory->createEmptyDtoFromEntityFqn(TemplateEntity::class); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function createDtoFromTemplateEntity(TemplateEntity $entity): TemplateEntityDto |
||
| 37 | |||
| 38 | } |
||
| 39 | |||
| 41 |