| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 15 | final class UseCaseBuilder extends AbstractBuilder |
||
| 16 | 1 | { |
|
| 17 | public function __construct(string $entity, string $action, array $properties) |
||
| 18 | { |
||
| 19 | $properties = \array_reduce($properties, function ($result, $property) { |
||
| 20 | $result[$property[Keyword::NAME]] = $property; |
||
| 21 | |||
| 22 | return $result; |
||
| 23 | }, []); |
||
| 24 | |||
| 25 | parent::__construct(\compact('entity', 'action', 'properties')); |
||
| 26 | } |
||
| 27 | |||
| 28 | protected function getFileTemplate(): string |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function getPathTemplate(): string |
||
| 36 | } |
||
| 37 | } |
||
| 38 |