| @@ 250-254 (lines=5) @@ | ||
| 247 | if ($type && $type instanceof PHPClassOf) { |
|
| 248 | $tt = $type->getArg()->getType(); |
|
| 249 | $tag->setTypes($this->getPhpType($tt) . "[]"); |
|
| 250 | if ($p = $this->isOneType($tt)) { |
|
| 251 | if (($t = $p->getType())) { |
|
| 252 | $tag->setTypes($this->getPhpType($t) . "[]"); |
|
| 253 | } |
|
| 254 | } |
|
| 255 | } elseif ($type) { |
|
| 256 | ||
| 257 | if ($p = $this->isOneType($type)) { |
|
| @@ 374-378 (lines=5) @@ | ||
| 371 | if ($type && $type instanceof PHPClassOf) { |
|
| 372 | $tt = $type->getArg()->getType(); |
|
| 373 | $tag->setTypes($this->getPhpType($tt) . "[]"); |
|
| 374 | if ($p = $this->isOneType($tt)) { |
|
| 375 | if (($t = $p->getType())) { |
|
| 376 | $tag->setTypes($this->getPhpType($t) . "[]"); |
|
| 377 | } |
|
| 378 | } |
|
| 379 | } elseif ($type) { |
|
| 380 | ||
| 381 | if ($this->isNativeType($type)) { |
|
| @@ 383-385 (lines=3) @@ | ||
| 380 | ||
| 381 | if ($this->isNativeType($type)) { |
|
| 382 | $tag->setTypes($this->getPhpType($type)); |
|
| 383 | } elseif (($p = $this->isOneType($type)) && ($t = $p->getType())) { |
|
| 384 | $tag->setTypes($this->getPhpType($t)); |
|
| 385 | } else { |
|
| 386 | $tag->setTypes($this->getPhpType($prop->getType())); |
|
| 387 | } |
|
| 388 | } |
|