Documentation

Link extends BaseTag
in package
implements StaticMethod

Reflection class for a {@}link tag in a Docblock.

Interfaces, Classes and Traits

StaticMethod

Table of Contents

$description  : Description|null
$name  : string
$link  : string
__construct()  : mixed
Initializes a link to a URL.
__toString()  : string
Returns a string representation for this tag.
create()  : mixed
getDescription()  : Description|null
getLink()  : string
Gets the link
getName()  : string
Gets the name of this tag.
render()  : string

Properties

$name

protected string $name = 'link'

Name of the tag

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
Return values
mixed

__toString()

Returns a string representation for this tag.

public __toString() : string
Return values
string

create()

public static create(string $body[, DescriptionFactory|null $descriptionFactory = null ][, Context|null $context = null ]) : mixed
Parameters
$body : string
$descriptionFactory : DescriptionFactory|null = null
$context : Context|null = null
Return values
mixed

Gets the link

public getLink() : string
Return values
string

getName()

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
Return values
string

Search results