1 | <?php namespace Neomerx\JsonApi\Document; |
||
25 | class Link implements LinkInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $subHref; |
||
31 | |||
32 | /** |
||
33 | * @var array|object|null |
||
34 | */ |
||
35 | private $meta; |
||
36 | |||
37 | /** |
||
38 | * @var bool |
||
39 | */ |
||
40 | private $treatAsHref; |
||
41 | |||
42 | /** |
||
43 | * @param string $subHref |
||
44 | * @param mixed $meta |
||
45 | * @param bool $treatAsHref If $subHref is a full URL and must not be concatenated with other URLs. |
||
46 | */ |
||
47 | 78 | public function __construct($subHref, $meta = null, $treatAsHref = false) |
|
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | 63 | public function getSubHref() |
|
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | 63 | public function getMeta() |
|
72 | |||
73 | /** |
||
74 | * @inheritdoc |
||
75 | */ |
||
76 | 63 | public function isTreatAsHref() |
|
80 | } |
||
81 |