1 | <?php |
||
9 | final class Link implements LinkInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $href; |
||
15 | |||
16 | /** |
||
17 | * @var bool |
||
18 | */ |
||
19 | private $templated; |
||
20 | |||
21 | /** |
||
22 | * @var string[] |
||
23 | */ |
||
24 | private $rels; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | private $attributes; |
||
30 | |||
31 | /** |
||
32 | * @param string $href |
||
33 | * @param bool $templated |
||
34 | * @param string[] $rels |
||
35 | * @param array $attributes |
||
36 | */ |
||
37 | public function __construct(string $href, bool $templated, array $rels, array $attributes) |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getHref(): string |
||
52 | |||
53 | /** |
||
54 | * @return bool |
||
55 | */ |
||
56 | public function isTemplated(): bool |
||
60 | |||
61 | /** |
||
62 | * @return string[] |
||
63 | */ |
||
64 | public function getRels(): array |
||
68 | |||
69 | /** |
||
70 | * @return array |
||
71 | */ |
||
72 | public function getAttributes(): array |
||
76 | } |
||
77 |