| @@ 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 | ||
| @@ 402-406 (lines=5) @@ | ||
| 399 | ||
| 400 | if ($arrayize) { |
|
| 401 | if ($itemOfArray = $this->isArrayType($t)) { |
|
| 402 | if (!$itemOfArray->getName()) { |
|
| 403 | $classType = $this->visitTypeAnonymous($itemOfArray, $element->getName(), $class); |
|
| 404 | } else { |
|
| 405 | $classType = $this->visitType($itemOfArray); |
|
| 406 | } |
|
| 407 | ||
| 408 | $arg = new PHPArg($this->getNamingStrategy()->getPropertyName($element)); |
|
| 409 | $arg->setType($classType); |
|
| @@ 413-417 (lines=5) @@ | ||
| 410 | $property->setType(new PHPClassOf($arg)); |
|
| 411 | return $property; |
|
| 412 | } elseif ($itemOfArray = $this->isArrayNestedElement($t)) { |
|
| 413 | if (!$t->getName()) { |
|
| 414 | $classType = $this->visitTypeAnonymous($t, $element->getName(), $class); |
|
| 415 | } else { |
|
| 416 | $classType = $this->visitType($t); |
|
| 417 | } |
|
| 418 | $elementProp = $this->visitElement($classType, $schema, $itemOfArray, false); |
|
| 419 | $property->setType(new PHPClassOf($elementProp)); |
|
| 420 | return $property; |
|