@@ 199-201 (lines=3) @@ | ||
196 | $oTitle->status = $tData['status']; |
|
197 | $oTitle->tagline = $tData['tagline']; |
|
198 | ||
199 | foreach ($tData['genres'] ?? [] as $g) { |
|
200 | $oTitle->genres[] = new Genre($g['id'], $g['name']); |
|
201 | } |
|
202 | foreach ($tData['production_companies'] ?? [] as $c) { |
|
203 | $oTitle->productionCompanies[] = new Company($c['id'], $c['name']); |
|
204 | } |
|
@@ 275-277 (lines=3) @@ | ||
272 | $oTitle->seasonsNumber = $tData['number_of_seasons']; |
|
273 | $oTitle->originCountries = $tData['origin_country']; |
|
274 | ||
275 | foreach ($tData['genres'] ?? [] as $item) { |
|
276 | $oTitle->genres[] = new Genre($item['id'], $item['name']); |
|
277 | } |
|
278 | foreach ($tData['networks'] ?? [] as $item) { |
|
279 | $oTitle->networks[] = new Network($item['id'], $item['name']); |
|
280 | } |