| @@ 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 | ||
| @@ 383-387 (lines=5) @@ | ||
| 380 | ||
| 381 | if ($arrayize) { |
|
| 382 | if ($itemOfArray = $this->isArrayType($t)) { |
|
| 383 | if (!$itemOfArray->getName()) { |
|
| 384 | $classType = $this->visitTypeAnonymous($itemOfArray, $element->getName(), $class); |
|
| 385 | } else { |
|
| 386 | $classType = $this->visitType($itemOfArray); |
|
| 387 | } |
|
| 388 | ||
| 389 | $arg = new PHPArg($this->getNamingStrategy()->getPropertyName($element)); |
|
| 390 | $arg->setType($classType); |
|
| @@ 394-398 (lines=5) @@ | ||
| 391 | $property->setType(new PHPClassOf($arg)); |
|
| 392 | return $property; |
|
| 393 | } elseif ($itemOfArray = $this->isArrayNestedElement($t)) { |
|
| 394 | if (!$t->getName()) { |
|
| 395 | $classType = $this->visitTypeAnonymous($t, $element->getName(), $class); |
|
| 396 | } else { |
|
| 397 | $classType = $this->visitType($t); |
|
| 398 | } |
|
| 399 | $elementProp = $this->visitElement($classType, $schema, $itemOfArray, false); |
|
| 400 | $property->setType(new PHPClassOf($elementProp)); |
|
| 401 | return $property; |
|