@@ 127-132 (lines=6) @@ | ||
124 | $oInfo->votes = $oData->num_votes; |
|
125 | $oInfo->runtime = $oData->runtime->time ?? null; |
|
126 | ||
127 | foreach ($oData->directors_summary ?? [] as $oDir) { |
|
128 | $oPerson = $oDir->name; |
|
129 | $oImage = isset($oPerson->image) ? new Image($oPerson->image->url, $oPerson->image->width, |
|
130 | $oPerson->image->height) : null; |
|
131 | $oInfo->directors[] = new Person($oPerson->nconst, $oPerson->name, $oImage); |
|
132 | } |
|
133 | ||
134 | foreach ($oData->writers_summary ?? [] as $oDir) { |
|
135 | $oPerson = $oDir->name; |
|
@@ 134-139 (lines=6) @@ | ||
131 | $oInfo->directors[] = new Person($oPerson->nconst, $oPerson->name, $oImage); |
|
132 | } |
|
133 | ||
134 | foreach ($oData->writers_summary ?? [] as $oDir) { |
|
135 | $oPerson = $oDir->name; |
|
136 | $oImage = isset($oPerson->image) ? new Image($oPerson->image->url, $oPerson->image->width, |
|
137 | $oPerson->image->height) : null; |
|
138 | $oInfo->writers[] = new Person($oPerson->nconst, $oPerson->name, $oImage); |
|
139 | } |
|
140 | ||
141 | foreach ($oData->photos ?? [] as $photo) { |
|
142 | $oInfo->photos[] = new Image($photo->image->url, $photo->image->width, $photo->image->height); |