src/model/PhpFunction.php 1 location
|
@@ 79-89 (lines=11) @@
|
76 |
|
$this->docblock = new Docblock(); |
77 |
|
} |
78 |
|
|
79 |
|
public function generateDocblock() { |
80 |
|
$docblock = $this->getDocblock(); |
81 |
|
$docblock->setShortDescription($this->getDescription()); |
82 |
|
$docblock->setLongDescription($this->getLongDescription()); |
83 |
|
|
84 |
|
// return tag |
85 |
|
$this->generateTypeTag(new ReturnTag()); |
86 |
|
|
87 |
|
// param tags |
88 |
|
$this->generateParamDocblock(); |
89 |
|
} |
90 |
|
} |
91 |
|
|
src/model/PhpMethod.php 1 location
|
@@ 95-105 (lines=11) @@
|
92 |
|
return PhpParameter::fromReflection($parameter); |
93 |
|
} |
94 |
|
|
95 |
|
public function generateDocblock() { |
96 |
|
$docblock = $this->getDocblock(); |
97 |
|
$docblock->setShortDescription($this->getDescription()); |
98 |
|
$docblock->setLongDescription($this->getLongDescription()); |
99 |
|
|
100 |
|
// return tag |
101 |
|
$this->generateTypeTag(new ReturnTag()); |
102 |
|
|
103 |
|
// param tags |
104 |
|
$this->generateParamDocblock(); |
105 |
|
} |
106 |
|
} |
107 |
|
|