Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
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 | } |
||
37 |