Definition for the @link tag; adds a attribute called `link`.
Methods
Initializes this object with the given data and sets the name and
description.
__construct(string $namespace, string[] $namespace_aliases, \DOMElement $xml, \phpDocumentor\Reflection\DocBlock\Tag $tag)
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::__construct() |
Parameters
$namespace
stringNamespace
where this tag occurs.
$namespace_aliases
string[]Aliases
used for all namespaces at the location of this tag.
$tag
\phpDocumentor\Reflection\DocBlock\TagTag
object to use.
Creates a new instance of this class or one of the specialized sub-classes.
create(string $namespace, string[] $namespace_aliases, \DOMElement $xml, \phpDocumentor\Reflection\DocBlock\Tag $tag) : \phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition
InheritedStatic
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::create() |
Parameters
$namespace
stringNamespace
where this tag occurs.
$namespace_aliases
string[]Aliases
used for all namespaces at the location of this tag.
$tag
\phpDocumentor\Reflection\DocBlock\TagThe
actual tag as reflected.
Returns
Dispatches a logging request to log a debug message.
debug(string $message) : void
Inherited
| inherited_from |
\phpDocumentor\Parser\ParserAbstract::debug() |
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::debug() |
Parameters
$message
stringThe message to log.
Returns the namespace identifier for this tag.
getNamespace() : string
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::getNamespace() |
Returns
string
Returns all aliases for namespaces at the location of this tag.
getNamespaceAliases() : array
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::getNamespaceAliases() |
Returns
array
Dispatches a logging request.
log(string $message, int $priority) : void
Inherited
| inherited_from |
\phpDocumentor\Parser\ParserAbstract::log() |
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::log() |
Parameters
$message
stringThe message to log.
$priority
intThe logging priority, the lower,the more
important. Ranges from 1 to 7
Setter for the description so it can be overridden.
setDescription(string $description) : void
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::setDescription() |
Parameters
$description
stringDescription for this definition.
Setter for the name so it can be overridden.
setName(string $name) : void
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::setName() |
Parameters
$name
stringName for this definition.
Sets the namespace for this tag; is used to determine type info.
setNamespace(string $namespace) : void
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::setNamespace() |
Parameters
$namespace
stringNamespace name for this definition.
Sets the aliases for all namespaces.
setNamespaceAliases(string[] $namespace_aliases) : void
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::setNamespaceAliases() |
Parameters
$namespace_aliases
string[]Array of aliases.
Setter for the reference so it can be overridden.
setReference(string $name) : void
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::setReference() |
Parameters
$name
stringName of the element to which is referred.
Adds type information to the structure.
setTypes(string[] $types) : void
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::setTypes() |
Parameters
$types
string[]Array with types in any format; will be transformed
to FQCN.
Tries to expand a type to it's full namespaced equivalent.
expandType(string $type, bool $ignore_non_objects) : string
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::expandType() |
Parameters
$type
stringType to expand into full namespaced
equivalent.
$ignore_non_objects
boolwhether to ignore reserved words, when
false it will not expand a set of keywords.
Returns
string
Properties
$namespace : string
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::$$namespace |
$namespace_aliases : array
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::$$namespace_aliases |
$tag : \phpDocumentor\Reflection\DocBlock\Tag
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::$$tag |
$xml : \DOMEelement
Inherited
| inherited_from |
\phpDocumentor\Plugin\Core\Parser\DocBlock\Tag\Definition\Definition::$$xml |