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