| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 55 | protected function setProperty(string $property, $value): void |
||
| 56 | { |
||
| 57 | if ($property === 'items') { |
||
| 58 | $resourceClass = $this->resourceClass; |
||
| 59 | $value = array_map( |
||
| 60 | static function (array $itemValues) use ($resourceClass): BaseResource { |
||
| 61 | return new $resourceClass($itemValues); |
||
| 62 | }, |
||
| 63 | $value |
||
| 64 | ); |
||
| 65 | } |
||
| 66 | |||
| 67 | parent::setProperty($property, $value); |
||
| 68 | } |
||
| 70 |