| @@ 260-264 (lines=5) @@ | ||
| 257 | if ($type && $type instanceof PHPClassOf) { |
|
| 258 | $tt = $type->getArg()->getType(); |
|
| 259 | $tag->setTypes($this->getPhpType($tt) . "[]"); |
|
| 260 | if ($p = $this->isOneType($tt)) { |
|
| 261 | if (($t = $p->getType())) { |
|
| 262 | $tag->setTypes($this->getPhpType($t) . "[]"); |
|
| 263 | } |
|
| 264 | } |
|
| 265 | } elseif ($type) { |
|
| 266 | ||
| 267 | if ($p = $this->isOneType($type)) { |
|
| @@ 384-388 (lines=5) @@ | ||
| 381 | if ($type && $type instanceof PHPClassOf) { |
|
| 382 | $tt = $type->getArg()->getType(); |
|
| 383 | $tag->setTypes($this->getPhpType($tt) . "[]"); |
|
| 384 | if ($p = $this->isOneType($tt)) { |
|
| 385 | if (($t = $p->getType())) { |
|
| 386 | $tag->setTypes($this->getPhpType($t) . "[]"); |
|
| 387 | } |
|
| 388 | } |
|
| 389 | } elseif ($type) { |
|
| 390 | ||
| 391 | if ($this->isNativeType($type)) { |
|
| @@ 393-395 (lines=3) @@ | ||
| 390 | ||
| 391 | if ($this->isNativeType($type)) { |
|
| 392 | $tag->setTypes($this->getPhpType($type)); |
|
| 393 | } elseif (($p = $this->isOneType($type)) && ($t = $p->getType())) { |
|
| 394 | $tag->setTypes($this->getPhpType($t)); |
|
| 395 | } else { |
|
| 396 | $tag->setTypes($this->getPhpType($prop->getType())); |
|
| 397 | } |
|
| 398 | } |
|