| Conditions | 4 |
| Paths | 5 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function setRawBeatMaps(object $rawBeatMaps): ResponseMaps |
||
| 37 | { |
||
| 38 | $beatMaps = []; |
||
| 39 | |||
| 40 | foreach ($rawBeatMaps as $hash => $rawBeatMap) { |
||
| 41 | $beatMaps[$hash] = $rawBeatMap === null || gettype($rawBeatMap) !== "object" ? null : new BeatMap($rawBeatMap); |
||
| 42 | } |
||
| 43 | |||
| 44 | $this->beatMaps = $beatMaps; |
||
| 45 | return $this; |
||
| 46 | } |
||
| 47 | } |