final class Link

Lazy encapsulation of Component::link().

Do not instantiate directly, use Component::lazyLink()

Methods

__construct(Component $component, string $destination, array $params = [])

Link specification.

string
getDestination()

Returns link destination.

setParameter(string $key, $value)

Changes link parameter.

mixed
getParameter(string $key)

Returns link parameter.

array
getParameters()

Returns link parameters.

string
__toString()

Converts link to URL.

Details

at line 36
__construct(Component $component, string $destination, array $params = [])

Link specification.

Parameters

Component $component
string $destination
array $params

at line 47
string getDestination()

Returns link destination.

Return Value

string

at line 57
Link setParameter(string $key, $value)

Changes link parameter.

Parameters

string $key
$value

Return Value

Link

at line 68
mixed getParameter(string $key)

Returns link parameter.

Parameters

string $key

Return Value

mixed

at line 77
array getParameters()

Returns link parameters.

Return Value

array

at line 86
string __toString()

Converts link to URL.

Return Value

string

Traits

Strict class for better experience.