API Documentation

LinkElement
in package
implements MetadataElementContract

Table of Contents

Interfaces

MetadataElementContract
The methods the object representations for Metadata element classes must implement.

Properties

$attr  : array<string|int, mixed>
$href  : string
$rel  : string

Methods

__construct()  : mixed
__toString()  : string
uniqueKey()  : string
formatOptionalAttributes()  : string

Properties

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

        
On this page

Search results