| @@ 419-423 (lines=5) @@ | ||
| 416 | if ($arrayize) { |
|
| 417 | ||
| 418 | if ($itemOfArray = $this->isArrayNestedElement($t)) { |
|
| 419 | if (!$t->getName()) { |
|
| 420 | $classType = $this->visitTypeAnonymous($t, $element->getName(), $class); |
|
| 421 | } else { |
|
| 422 | $classType = $this->visitType($t); |
|
| 423 | } |
|
| 424 | ||
| 425 | $visited = $this->visitElement($classType, $schema, $itemOfArray, false); |
|
| 426 | ||
| @@ 396-400 (lines=5) @@ | ||
| 393 | ||
| 394 | if ($arrayize) { |
|
| 395 | if ($itemOfArray = $this->isArrayType($t)) { |
|
| 396 | if (!$itemOfArray->getName()) { |
|
| 397 | $classType = $this->visitTypeAnonymous($itemOfArray, $element->getName(), $class); |
|
| 398 | } else { |
|
| 399 | $classType = $this->visitType($itemOfArray); |
|
| 400 | } |
|
| 401 | ||
| 402 | $arg = new PHPArg($this->getNamingStrategy()->getPropertyName($element)); |
|
| 403 | $arg->setType($classType); |
|
| @@ 407-411 (lines=5) @@ | ||
| 404 | $property->setType(new PHPClassOf($arg)); |
|
| 405 | return $property; |
|
| 406 | } elseif ($itemOfArray = $this->isArrayNestedElement($t)) { |
|
| 407 | if (!$t->getName()) { |
|
| 408 | $classType = $this->visitTypeAnonymous($t, $element->getName(), $class); |
|
| 409 | } else { |
|
| 410 | $classType = $this->visitType($t); |
|
| 411 | } |
|
| 412 | $elementProp = $this->visitElement($classType, $schema, $itemOfArray, false); |
|
| 413 | $property->setType(new PHPClassOf($elementProp)); |
|
| 414 | return $property; |
|