ReflectionDocComment
class ReflectionDocComment implements StringRepresentation (View source)
Documentation comment reflection
Constants
| PATTERN_COMMENT_PREFIX |
|
| PATTERN_COMMENT_SUFFIX |
|
| PATTERN_COMMENT_END |
|
| PATTERN_PROPERTY_DECLARATION |
|
| PATTERN_VARIABLE_DECLARATION |
|
| PATTERN_TYPE_ARRAY_OF_TYPE |
|
| PATTERN_TYPE_MAP |
|
Methods
Get information on PHPDoc type declaration
No description
No description
Get all lines starting with the given documentation tag
Get all lines which are not tags
Get first text line
Get detailed description lines.
Indicates if the DocComment has at least one occurence of the given tag.
Get the nth line containing the given documentation tag
Get type and documentation of the given function parameter.
Get variable type and documentation.
Get return value types and return value documentation given by the @return tag.
Get cleaned documentation lines
Details
at line 32
static string[]
getTypeDeclarationProperties(string $declaration)
Get information on PHPDoc type declaration
at line 64
__construct(string $text)
at line 107
string
__toString()
at line 124
string[]
getTags(string $name)
Get all lines starting with the given documentation tag
at line 153
string[]
getTextLines()
Get all lines which are not tags
at line 166
string|NULL
getAbstract()
Get first text line
at line 180
NULL|string|string[]
getDetails(string|NULL $glue = null)
Get detailed description lines.
The detailed description lines are all text lines except the first one.
at line 198
boolean
hasTag(string $name)
Indicates if the DocComment has at least one occurence of the given tag.
at line 229
string
getTag(string $name, number $index = 0)
Get the nth line containing the given documentation tag
at line 242
string[]|NULL
getParameter(string $name)
Get type and documentation of the given function parameter.
at line 255
string[]|NULL
getVariable(string|NULL $name = null)
Get variable type and documentation.
at line 288
string[]|NULL
getReturn()
Get return value types and return value documentation given by the @return tag.
at line 312
string[]
getLines()
Get cleaned documentation lines