LinkElement
in package
implements
MetadataElementContract
Table of Contents
Interfaces
- MetadataElementContract
- The methods the object representations for Metadata element classes must implement.
Properties
Methods
- __construct() : mixed
- __toString() : string
- uniqueKey() : string
- formatOptionalAttributes() : string
Properties
$attr
protected
array<string|int, mixed>
$attr
= []
$href
protected
string
$href
$rel
protected
string
$rel
Methods
__construct()
public
__construct(string $rel, string $href[, array<string|int, mixed> $attr = [] ]) : mixed
Parameters
- $rel : string
- $href : string
- $attr : array<string|int, mixed> = []
__toString()
public
__toString() : string
Return values
string —The HTML representation of the element.
uniqueKey()
public
uniqueKey() : string
Return values
string —The unique key for the element. If multiple elements have the same key, only the first one will be used.
formatOptionalAttributes()
protected
formatOptionalAttributes() : string