src/model/PhpMethod.php 1 location
|
@@ 74-77 (lines=4) @@
|
| 71 |
|
|
| 72 |
|
// return type and description |
| 73 |
|
$returns = $method->getDocblock()->getTags('return'); |
| 74 |
|
if ($returns->size() > 0) { |
| 75 |
|
$return = $returns->get(0); |
| 76 |
|
$method->setType($return->getType(), $return->getDescription()); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
// params |
| 80 |
|
foreach ($ref->getParameters() as $param) { |
src/parser/visitor/AbstractPhpStructVisitor.php 1 location
|
@@ 203-206 (lines=4) @@
|
| 200 |
|
|
| 201 |
|
// return type and description |
| 202 |
|
$returns = $m->getDocblock()->getTags('return'); |
| 203 |
|
if ($returns->size() > 0) { |
| 204 |
|
$return = $returns->get(0); |
| 205 |
|
$m->setType($return->getType(), $return->getDescription()); |
| 206 |
|
} |
| 207 |
|
|
| 208 |
|
// body |
| 209 |
|
$stmts = $node->getStmts(); |