Property | Type | Description | |
---|---|---|---|
$content | Content of the tag. When set to NULL, it means it needs to be regenerated. | ||
$description | Description of the content of this tag | ||
$docblock | The DocBlock which this tag belongs to. | ||
$location | Location of the tag. | ||
$parsedDescription | The description, as an array of strings and Tag objects. When set to NULL, it means it needs to be regenerated. | ||
$tag | Name of the tag |
Method | Description | |
---|---|---|
__construct ( string $name, string $content, |
Parses a tag and populates the member variables. | |
__toString ( ) : string | Returns the exported information (we should use the export static method BUT this throws an exception at this point). | |
createInstance ( string $tag_line, |
Factory method responsible for instantiating the correct sub type. | |
export ( ) : void | Builds a string representation of this object. | |
getContent ( ) : string | Gets the content of this tag. | |
getDescription ( ) : string | Gets the description component of this tag. | |
getDocBlock ( ) : |
Gets the docblock this tag belongs to. | |
getLocation ( ) : phpDocumentor\Reflection\DocBlock\Location | Gets the location of the tag. | |
getName ( ) : string | Gets the name of this tag. | |
getParsedDescription ( ) : array | Gets the parsed text of this description. | |
registerTagHandler ( string $tag, string | null $handler ) : boolean | Registers a handler for tags. | |
setContent ( string $content ) | Sets the content of this tag. | |
setDescription ( string $description ) | Sets the description component of this tag. | |
setDocBlock ( |
Sets the docblock this tag belongs to. | |
setLocation ( phpDocumentor\Reflection\DocBlock\Location $location = null ) | Sets the location of the tag. | |
setName ( string $name ) | Sets the name of this tag. |
public __construct ( string $name, string $content, |
||
$name | string | Name of the tag. |
$content | string | The contents of the given tag. |
$docblock | The DocBlock which this tag belongs to. | |
$location | phpDocumentor\Reflection\DocBlock\Location | Location of the tag. |
public __toString ( ) : string | ||
return | string |
final public static createInstance ( string $tag_line, |
||
$tag_line | string | The text for this tag, including description. |
$docblock | The DocBlock which this tag belongs to. | |
$location | phpDocumentor\Reflection\DocBlock\Location | Location of the tag. |
return | static | A new tag object. |
public getContent ( ) : string | ||
return | string |
public getDescription ( ) : string | ||
return | string |
public getDocBlock ( ) : |
||
return | The docblock this tag belongs to. |
public getLocation ( ) : phpDocumentor\Reflection\DocBlock\Location | ||
return | phpDocumentor\Reflection\DocBlock\Location | The tag's location. |
public getParsedDescription ( ) : array | ||
return | array | An array of strings and tag objects, in the order they occur within the description. |
final public static registerTagHandler ( string $tag, string | null $handler ) : boolean | ||
$tag | string | Name of tag to regiser a handler for. When registering a namespaced tag, the full name, along with a prefixing slash MUST be provided. |
$handler | string | null | FQCN of handler. Specifing NULL removes the handler for the specified tag, if any. |
return | boolean | TRUE on success, FALSE on failure. |
public setContent ( string $content ) | ||
$content | string | The new content of this tag. |
public setDescription ( string $description ) | ||
$description | string | The new description component of this tag. |
public setDocBlock ( |
||
$docblock | The new docblock this tag belongs to. Setting NULL removes any association. |
public setLocation ( phpDocumentor\Reflection\DocBlock\Location $location = null ) | ||
$location | phpDocumentor\Reflection\DocBlock\Location | The new location of the tag. |
protected $content |
protected $parsedDescription |