@@ 210-216 (lines=7) @@ | ||
207 | $newValue = []; |
|
208 | if (is_array($value)) { |
|
209 | foreach ($value as $item) { |
|
210 | if (is_array($item)) { |
|
211 | $childObject = new $className(); |
|
212 | self::populate($childObject, $item); |
|
213 | $newValue[] = $childObject; |
|
214 | } else { |
|
215 | $newValue = $item; |
|
216 | } |
|
217 | } |
|
218 | } |
|
219 | ||
@@ 220-226 (lines=7) @@ | ||
217 | } |
|
218 | } |
|
219 | ||
220 | } else { |
|
221 | if (is_array($value)) { |
|
222 | $childObject = new $className(); |
|
223 | self::populate($childObject, $value); |
|
224 | $newValue = $childObject; |
|
225 | } |
|
226 | } |
|
227 | } |
|
228 | ||
229 | if (isset($newValue)) { |