| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 15 | final class ResponseBuilder extends AbstractBuilder |
||
| 16 | 1 | { |
|
| 17 | public function __construct(SchemaInterface $schema, string $action) |
||
| 18 | { |
||
| 19 | $entity = $this->getInflector()->entity($schema->name()); |
||
| 20 | $item = $this->getInflector()->item($schema->name()); |
||
| 21 | $items = $this->getInflector()->items($schema->name()); |
||
| 22 | $action = $this->getInflector()->pascalAction($action); |
||
| 23 | |||
| 24 | parent::__construct(\compact('entity', 'item', 'items', 'action')); |
||
| 25 | } |
||
| 26 | |||
| 27 | protected function getFileTemplate(): string |
||
| 28 | { |
||
| 29 | return 'Response.php.twig'; |
||
| 30 | } |
||
| 31 | |||
| 32 | protected function getPathTemplate(): string |
||
| 35 | } |
||
| 36 | } |
||
| 37 |