CustomRel
in package
implements
CustomRelInterface
FinalYes
The Extension Relation Type described in: - section 8.2 of the HAL specification - section 4 of the RFC5988 - Web Linking document.
Tags
Table of Contents
Interfaces
- CustomRelInterface
- The Extension Relation Type described in: - section 8.2 of the HAL specification - section 4 of the RFC5988 - Web Linking document.
Properties
- $name : mixed
Methods
- __construct() : mixed
- An Extension Relation Type SHOULD be a URI or a name using the CURIE syntax (prefix:reference).
- __set() : mixed
- The magic setter is overridden to insure immutability.
- __toString() : mixed
- getName() : string
Properties
$name
private
mixed
$name
Methods
__construct()
An Extension Relation Type SHOULD be a URI or a name using the CURIE syntax (prefix:reference).
public
__construct(string $name) : mixed
Any name as a string is accepted too.
Parameters
- $name : string
-
the relation name
__set()
The magic setter is overridden to insure immutability.
public
final __set(mixed $name, mixed $value) : mixed
Parameters
- $name : mixed
- $value : mixed
__toString()
public
__toString() : mixed
getName()
public
getName() : string
Return values
string —the relation name