| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 33.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class TargetFactory implements TargetFactoryInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @return Target |
||
| 22 | */ |
||
| 23 | 7 | public function create(TargetCreationDto $dto) |
|
| 24 | { |
||
| 25 | 7 | return new Target($dto->id, $dto->type, $dto->name); |
|
| 26 | } |
||
| 27 | |||
| 28 | public function getClassForType(string $type): string |
||
| 31 | } |
||
| 32 | |||
| 33 | public function shortenType(string $type): string |
||
| 36 | } |
||
| 37 | } |
||
| 38 |