| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 22 | public function __construct(array $data, array $config = []) |
|
| 16 | { |
||
| 17 | 22 | $name = (string)array_key_first($data); |
|
| 18 | 22 | $typehint = $this->guessTypeHint($data[$name]); |
|
| 19 | 22 | $getter = $this->getPascalCase($name); |
|
| 20 | |||
| 21 | 22 | $_data = \compact('name', 'typehint', 'getter'); |
|
| 22 | |||
| 23 | 22 | parent::__construct($_data, $config); |
|
| 24 | 22 | } |
|
| 41 |