Property | Type | Description | |
---|---|---|---|
$context | Information about the context of this DocBlock. | ||
$location | Information about the location of this DocBlock. | ||
$long_description | The actual description for this docblock. | ||
$short_description | The opening line for this docblock. | ||
$tags | An array containing all the tags in this docblock; except inline. |
Method | Description | |
---|---|---|
__construct ( Reflector | string $docblock, phpDocumentor\Reflection\DocBlock\Context $context = null, phpDocumentor\Reflection\DocBlock\Location $location = null ) | Parses the given docblock and populates the member fields. | |
__toString ( ) : string | Returns the exported information (we should use the export static method BUT this throws an exception at this point). | |
appendTag ( |
Appends a tag at the end of the list of tags. | |
export ( ) : string | Builds a string representation of this object. | |
getContext ( ) : phpDocumentor\Reflection\DocBlock\Context | Returns the current context. | |
getLocation ( ) : phpDocumentor\Reflection\DocBlock\Location | Returns the current location. | |
getLongDescription ( ) : |
Returns the full description or also known as long description. | |
getShortDescription ( ) : string | Returns the opening line or also known as short description. | |
getTags ( ) : |
Returns the tags for this DocBlock. | |
getTagsByName ( string $name ) : |
Returns an array of tags matching the given name. If no tags are found an empty array is returned. | |
hasTag ( string $name ) : boolean | Checks if a tag of a certain type is present in this DocBlock. |
Method | Description | |
---|---|---|
cleanInput ( string $comment ) : string | Strips the asterisks from the DocBlock comment. | |
parseTags ( string $tags ) : void | Creates the tag objects. | |
splitDocBlock ( string $comment ) : string[] | Splits the DocBlock into a short description, long description and block of tags. |
public __construct ( Reflector | string $docblock, phpDocumentor\Reflection\DocBlock\Context $context = null, phpDocumentor\Reflection\DocBlock\Location $location = null ) | ||
$docblock | Reflector | string | A docblock comment (including asterisks) or reflector supporting the getDocComment method. |
$context | phpDocumentor\Reflection\DocBlock\Context | The context in which the DocBlock occurs. |
$location | phpDocumentor\Reflection\DocBlock\Location | The location within the file that this DocBlock occurs in. |
public __toString ( ) : string | ||
return | string |
public appendTag ( |
||
$tag | The tag to add. | |
return | The newly added tag. |
protected cleanInput ( string $comment ) : string | ||
$comment | string | String containing the comment text. |
return | string |
public getContext ( ) : phpDocumentor\Reflection\DocBlock\Context | ||
return | phpDocumentor\Reflection\DocBlock\Context |
public getLocation ( ) : phpDocumentor\Reflection\DocBlock\Location | ||
return | phpDocumentor\Reflection\DocBlock\Location |
public getLongDescription ( ) : |
||
return |
public getShortDescription ( ) : string | ||
return | string |
public getTags ( ) : |
||
return |
public getTagsByName ( string $name ) : |
||
$name | string | String to search by. |
return |
protected splitDocBlock ( string $comment ) : string[] | ||
$comment | string | Comment to split into the sub-parts. |
return | string[] | containing the short-, long description and an element containing the tags. |
protected $location |
protected $long_description |
protected $short_description |