Reflection class for a mistyped @throws tag called @throw in a Docblock.
This is a very common error, so @throw is aliased to be @throws
Methods
Sets the type to @throws and lets parent parse the tag and populates the
member variables.
__construct(string $type, string $content)
Parameters
$type
stringTag identifier for this tag (should be 'return')
$content
stringContents for this tag.
Exceptions
Returns the exported information (we should use the export static method
BUT this throws an exception at this point).
__toString() : void
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::__toString() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::__toString() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::__toString() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::__toString() |
Factory method responsible for instantiating the correct sub type.
createInstance(string $tag_line) : \phpDocumentor_Reflection_DocBlock_Tag
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::createInstance() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::createInstance() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::createInstance() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::createInstance() |
Parameters
$tag_line
stringThe text for this tag, including description.
Exceptions
Returns
Builds a string representation of this object.
export() : void
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::export() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::export() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::export() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::export() |
Returns the content of this tag.
getContent() : string
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::getContent() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::getContent() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::getContent() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::getContent() |
Returns
string
Returns the description component of this tag.
getDescription() : string
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::getDescription() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::getDescription() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::getDescription() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::getDescription() |
Returns
string
Get the line number of the tag
getLineNumber() : int
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::getLineNumber() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::getLineNumber() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::getLineNumber() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::getLineNumber() |
Returns
inttag line number
Returns the name of this tag.
getName() : string
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::getName() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::getName() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::getName() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::getName() |
Returns
string
Returns the type of the variable.
getType() : string
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::getType() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::getType() |
Returns
string
Returns the type of the variable.
getTypes() : string
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::getTypes() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::getTypes() |
Returns
string
Returns the variable's name.
getVariableName() : string
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::getVariableName() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::getVariableName() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::getVariableName() |
Returns
string
Inject the docblock class
setDocBlock(phpDocumentor_Reflection_DocBlockedAbstract $docblock) : void
Inherited
This exposes some common functionality contained in the docblock abstract.
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::setDocBlock() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::setDocBlock() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::setDocBlock() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::setDocBlock() |
Parameters
Set the tag line number
setLineNumber(int $number) : void
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::setLineNumber() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::setLineNumber() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::setLineNumber() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::setLineNumber() |
Parameters
$number
intthe line number of the tag
Sets the variable's name.
setVariableName(string $name) : void
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::setVariableName() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::setVariableName() |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::setVariableName() |
Parameters
$name
stringThe new name for this variable.
Properties
content of the tag
$content : string
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::$$content |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::$$content |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::$$content |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::$$content |
description of the content of this tag
$description : string
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::$$description |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::$$description |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::$$description |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::$$description |
docblock class
$docblock : \phpDocumentor_Reflection_DocBlockedAbstract
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::$$docblock |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::$$docblock |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::$$docblock |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::$$docblock |
line number of the tag
$line_number : int
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::$$line_number |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::$$line_number |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::$$line_number |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::$$line_number |
Name of the tag
$tag : string
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag::$$tag |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::$$tag |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::$$tag |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::$$tag |
$type
$type : string
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::$$type |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::$$type |
$variableName
$variableName : string
Inherited
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Param::$$variableName |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Return::$$variableName |
| inherited_from |
\phpDocumentor_Reflection_DocBlock_Tag_Throws::$$variableName |