Link
extends BaseTag
in package
FinalYes
Reflection class for a {@}link tag in a Docblock.
Table of Contents
Properties
- $description : Description|null
- $name : string
- $link : string
Methods
- __construct() : mixed
- Initializes a link to a URL.
- __toString() : string
- Returns a string representation for this tag.
- create() : Tag|mixed
- getDescription() : Description|null
- getLink() : string
- Gets the link
- getName() : string
- Gets the name of this tag.
- render() : string
Properties
$description
protected
Description|null
$description
= null
Description of the tag.
$name
protected
string
$name
= 'link'
Name of the tag
$link
private
string
$link
Methods
__construct()
Initializes a link to a URL.
public
__construct(string $link[, Description|null $description = null ]) : mixed
Parameters
- $link : string
- $description : Description|null = null
__toString()
Returns a string representation for this tag.
public
__toString() : string
Return values
stringcreate()
public
static create(string $body[, DescriptionFactory|null $descriptionFactory = null ][, Context|null $context = null ]) : Tag|mixed
Parameters
- $body : string
- $descriptionFactory : DescriptionFactory|null = null
- $context : Context|null = null
Return values
Tag|mixed —Class that implements Tag
getDescription()
public
getDescription() : Description|null
Return values
Description|nullgetLink()
Gets the link
public
getLink() : string
Return values
stringgetName()
Gets the name of this tag.
public
getName() : string
Return values
string —The name of this tag.
render()
public
render([Formatter|null $formatter = null ]) : string
Parameters
- $formatter : Formatter|null = null