LinkDescriptor
extends TagDescriptor
in package
implements
Stringable
Descriptor representing the link tag with a descriptor.
Table of Contents
Interfaces
- Stringable
Properties
- $description : DescriptionDescriptor|null
- $errors : Collection<string|int, Error>
- $link : string
- $name : string
Methods
- __construct() : mixed
- Initializes the tag by setting the name and errors,
- __toString() : string
- getDescription() : DescriptionDescriptor
- Returns the description for this element.
- getErrors() : Collection<string|int, Error>
- Returns all errors associated with this tag.
- getLink() : string
- Returns the URL where this link points to.
- getName() : string
- Returns the name for this element.
- setDescription() : void
- Sets a description or none to inherit from a parent.
- setLink() : void
- Sets the URL where the link points to.
Properties
$description
protected
DescriptionDescriptor|null
$description
= null
$errors
protected
Collection<string|int, Error>
$errors
A collection of errors found during filtering.
$link
protected
string
$link
= ''
the url where the link points to.
$name
protected
string
$name
= ''
Methods
__construct()
Initializes the tag by setting the name and errors,
public
__construct(string $name[, DescriptionDescriptor|null $description = null ]) : mixed
Parameters
- $name : string
- $description : DescriptionDescriptor|null = null
__toString()
public
__toString() : string
Return values
stringgetDescription()
Returns the description for this element.
public
getDescription() : DescriptionDescriptor
This method will automatically attempt to inherit the parent's description if this one has none.
Return values
DescriptionDescriptorgetErrors()
Returns all errors associated with this tag.
public
getErrors() : Collection<string|int, Error>
Return values
Collection<string|int, Error>getLink()
Returns the URL where this link points to.
public
getLink() : string
Return values
stringgetName()
Returns the name for this element.
public
getName() : string
Return values
stringsetDescription()
Sets a description or none to inherit from a parent.
public
setDescription(DescriptionDescriptor|null $description) : void
Parameters
- $description : DescriptionDescriptor|null
setLink()
Sets the URL where the link points to.
public
setLink(string $link) : void
Parameters
- $link : string