| 1 | <?php |
||
| 8 | trait ReflectionDocCommentTrait |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * The documentation comment object. |
||
| 13 | * |
||
| 14 | * @var \Wingu\OctopusCore\Reflection\ReflectionDocComment |
||
| 15 | */ |
||
| 16 | protected $reflectionDocComment; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Get the document of the method. |
||
| 20 | * |
||
| 21 | * @param string $trimLinePattern Pattern for trim() function applied to each line. Usefull to leave spaces or tabs. The default is the same as calling trim() without the argument. |
||
| 22 | * @return \Wingu\OctopusCore\Reflection\ReflectionDocComment |
||
| 23 | */ |
||
| 24 | 6 | public function getReflectionDocComment($trimLinePattern = " \t\n\r\0\x0B") |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Return the string containing the current constant comment or false if there's no comment. |
||
| 35 | * |
||
| 36 | * @return string|false |
||
| 37 | */ |
||
| 38 | abstract public function getDocComment(); |
||
| 39 | } |
||
| 40 |