프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | string |
public appendTag ( |
||
$tag | The tag to add. | |
리턴 | The newly added tag. |
protected cleanInput ( string $comment ) : string | ||
$comment | string | String containing the comment text. |
리턴 | string |
public getContext ( ) : phpDocumentor\Reflection\DocBlock\Context | ||
리턴 | phpDocumentor\Reflection\DocBlock\Context |
public getLocation ( ) : phpDocumentor\Reflection\DocBlock\Location | ||
리턴 | phpDocumentor\Reflection\DocBlock\Location |
public getLongDescription ( ) : |
||
리턴 |
public getShortDescription ( ) : string | ||
리턴 | string |
public getTags ( ) : |
||
리턴 |
public getTagsByName ( string $name ) : |
||
$name | string | String to search by. |
리턴 |
protected splitDocBlock ( string $comment ) : string[] | ||
$comment | string | Comment to split into the sub-parts. |
리턴 | string[] | containing the short-, long description and an element containing the tags. |
protected $long_description |