| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public static function createFromArrayResponse(array $response): self |
||
| 13 | { |
||
| 14 | $collection = new self(); |
||
| 15 | |||
| 16 | foreach ($response as $accommodation) { |
||
| 17 | $collection->accommodation[$accommodation->guid] = Accommodation::createFromResponse($accommodation); |
||
| 18 | } |
||
| 19 | |||
| 20 | return $collection; |
||
| 21 | } |
||
| 31 |