| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 22 | public function execute(CreateRepositoryFileRequest $request): CreateRepositoryFileResponse |
||
| 23 | { |
||
| 24 | $entity = $this->getPascalCase($this->getSingularize($request->entity)); |
||
| 25 | |||
| 26 | $repository = new RepositoryBuilder($entity, $request->actions); |
||
| 27 | $filename = $entity . 'Repository'; |
||
| 28 | $path = \sprintf('%1$s/../../tmp/skeleton/domain/%2$s', __DIR__, $entity); |
||
| 29 | $writer = new PhpWriter($repository->build(), $filename, $path); |
||
| 30 | |||
| 31 | return new CreateRepositoryFileResponse($writer->save()); |
||
| 32 | } |
||
| 34 |