| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 89 | public function setData(array $data): ForecastItemInterface |
||
| 90 | { |
||
| 91 | $this->date = $data['date']; |
||
| 92 | $this->summary = $data['summary']; |
||
| 93 | $this->temperature = (new Temperature())->setData($data['temperature']); |
||
| 94 | $this->wind = (new Wind())->setData($data['wind']); |
||
| 95 | $this->humidity = (new Humidity())->setData($data['humidity']); |
||
| 96 | $this->precipitation = (new Precipitation())->setData($data['precipitation']); |
||
| 97 | $this->icon = $data['icon']; |
||
| 98 | return $this; |
||
| 99 | } |
||
| 100 | |||
| 125 |