src/model/PhpClass.php 1 location
|
@@ 39-44 (lines=6) @@
|
36 |
|
->setFinal($ref->isFinal()) |
37 |
|
->setUseStatements(ReflectionUtils::getUseStatements($ref)); |
38 |
|
|
39 |
|
if ($ref->getDocComment()) { |
40 |
|
$docblock = new Docblock($ref); |
41 |
|
$class->setDocblock($docblock); |
42 |
|
$class->setDescription($docblock->getShortDescription()); |
43 |
|
$class->setLongDescription($docblock->getLongDescription()); |
44 |
|
} |
45 |
|
|
46 |
|
// methods |
47 |
|
foreach ($ref->getMethods() as $method) { |
src/parser/visitor/AbstractPhpStructVisitor.php 1 location
|
@@ 163-168 (lines=6) @@
|
160 |
|
$m->setReferenceReturned($node->returnsByRef()); |
161 |
|
|
162 |
|
// docblock |
163 |
|
if (($doc = $node->getDocComment()) !== null) { |
164 |
|
$m->setDocblock($doc->getReformattedText()); |
165 |
|
$docblock = $m->getDocblock(); |
166 |
|
$m->setDescription($docblock->getShortDescription()); |
167 |
|
$m->setLongDescription($docblock->getLongDescription()); |
168 |
|
} |
169 |
|
|
170 |
|
// params |
171 |
|
$params = $m->getDocblock()->getTags('param'); |