| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 15 | 22 | final class GetterBuilder extends AbstractBuilder |
|
| 16 | { |
||
| 17 | 22 | public function __construct(SchemaAttributeInterface $property) |
|
| 18 | 22 | { |
|
| 19 | 22 | $name = $this->getInflector()->camelProperty($property->name()); |
|
| 20 | $typehint = $property->typeHint(); |
||
| 21 | 22 | $required = $property->isRequired(); |
|
| 22 | |||
| 23 | 22 | parent::__construct(\compact('name', 'typehint', 'required')); |
|
| 24 | 22 | } |
|
| 25 | |||
| 26 | 22 | protected function getFileTemplate(): string |
|
| 27 | { |
||
| 28 | 22 | return 'Getter.php.twig'; |
|
| 29 | } |
||
| 30 | |||
| 31 | 22 | protected function getPathTemplate(): string |
|
| 34 | } |
||
| 35 | } |
||
| 36 |