| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 14 | 7 | final class UseCaseBuilder extends AbstractBuilder |
|
| 15 | { |
||
| 16 | 7 | public function __construct(string $entity, string $action) |
|
| 17 | { |
||
| 18 | $entity = $this->getPascalCase($this->getSingularize($entity)); |
||
| 19 | 7 | ||
| 20 | parent::__construct(\compact('entity', 'action')); |
||
| 21 | 7 | } |
|
| 22 | |||
| 23 | public function build(): string |
||
| 24 | { |
||
| 25 | return \rtrim(parent::build()); |
||
| 26 | } |
||
| 27 | |||
| 28 | protected function getFileTemplate(): string |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function getPathTemplate(): string |
||
| 38 |