| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 18 | public function __construct(string $entity, array $properties) |
||
| 19 | { |
||
| 20 | $entity = (new Convert($this->getSingularize($entity)))->toTitle(); |
||
| 21 | $headers = \array_reduce($properties, function (array $result, array $property) { |
||
| 22 | $result[$this->getCamelCase($property[Keyword::NAME])] = (new Convert($property[Keyword::NAME]))->toTitle(); |
||
| 23 | |||
| 24 | return $result; |
||
| 25 | }, []); |
||
| 26 | |||
| 27 | parent::__construct(\compact('entity', 'headers')); |
||
| 28 | } |
||
| 40 |