|
@@ 99-104 (lines=6) @@
|
| 96 |
|
|
| 97 |
|
$docblock = new DocBlockGenerator('Gets or sets the inner value'); |
| 98 |
|
$paramTag = new ParamTag("value", "mixed"); |
| 99 |
|
if ($type && $type instanceof PHPClassOf) { |
| 100 |
|
$paramTag->setTypes($this->getPhpType($type->getArg() |
| 101 |
|
->getType()) . "[]"); |
| 102 |
|
} elseif ($type) { |
| 103 |
|
$paramTag->setTypes($this->getPhpType($prop->getType())); |
| 104 |
|
} |
| 105 |
|
$docblock->setTag($paramTag); |
| 106 |
|
|
| 107 |
|
$returnTag = new ReturnTag("mixed"); |
|
@@ 109-114 (lines=6) @@
|
| 106 |
|
|
| 107 |
|
$returnTag = new ReturnTag("mixed"); |
| 108 |
|
|
| 109 |
|
if ($type && $type instanceof PHPClassOf) { |
| 110 |
|
$returnTag->setTypes($this->getPhpType($type->getArg() |
| 111 |
|
->getType()) . "[]"); |
| 112 |
|
} elseif ($type) { |
| 113 |
|
$returnTag->setTypes($this->getPhpType($type)); |
| 114 |
|
} |
| 115 |
|
$docblock->setTag($returnTag); |
| 116 |
|
|
| 117 |
|
$param = new ParameterGenerator("value"); |