Свойство | 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. |
Méthode | 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. |
Méthode | 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 | ||
Résultat | string |
public appendTag ( |
||
$tag | The tag to add. | |
Résultat | The newly added tag. |
protected cleanInput ( string $comment ) : string | ||
$comment | string | String containing the comment text. |
Résultat | string |
public getContext ( ) : phpDocumentor\Reflection\DocBlock\Context | ||
Résultat | phpDocumentor\Reflection\DocBlock\Context |
public getLocation ( ) : phpDocumentor\Reflection\DocBlock\Location | ||
Résultat | phpDocumentor\Reflection\DocBlock\Location |
public getLongDescription ( ) : |
||
Résultat |
public getShortDescription ( ) : string | ||
Résultat | string |
public getTags ( ) : |
||
Résultat |
public getTagsByName ( string $name ) : |
||
$name | string | String to search by. |
Résultat |
protected splitDocBlock ( string $comment ) : string[] | ||
$comment | string | Comment to split into the sub-parts. |
Résultat | string[] | containing the short-, long description and an element containing the tags. |
protected $location |
protected $long_description |
protected $short_description |