|
@@ 78-82 (lines=5) @@
|
| 75 |
|
|
| 76 |
|
$docblock = new DocBlockGenerator('Gets or sets the inner value'); |
| 77 |
|
$paramTag = new ParamTag("value", "mixed"); |
| 78 |
|
if ($type && $type instanceof PHPClassOf) { |
| 79 |
|
$paramTag->setTypes($type->getArg()->getType()->getPhpType() . "[]"); |
| 80 |
|
} elseif ($type) { |
| 81 |
|
$paramTag->setTypes($prop->getType()->getPhpType()); |
| 82 |
|
} |
| 83 |
|
$docblock->setTag($paramTag); |
| 84 |
|
|
| 85 |
|
$returnTag = new ReturnTag("mixed"); |
|
@@ 87-91 (lines=5) @@
|
| 84 |
|
|
| 85 |
|
$returnTag = new ReturnTag("mixed"); |
| 86 |
|
|
| 87 |
|
if ($type && $type instanceof PHPClassOf) { |
| 88 |
|
$returnTag->setTypes($type->getArg()->getType()->getPhpType() . "[]"); |
| 89 |
|
} elseif ($type) { |
| 90 |
|
$returnTag->setTypes($type->getPhpType()); |
| 91 |
|
} |
| 92 |
|
$docblock->setTag($returnTag); |
| 93 |
|
|
| 94 |
|
$param = new ParameterGenerator("value"); |