1 | <?php |
||
22 | final class Reference implements ReferenceInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | * |
||
27 | * @psalm-readonly |
||
28 | */ |
||
29 | private $label; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | * |
||
34 | * @psalm-readonly |
||
35 | */ |
||
36 | private $destination; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | * |
||
41 | * @psalm-readonly |
||
42 | */ |
||
43 | private $title; |
||
44 | |||
45 | 321 | public function __construct(string $label, string $destination, string $title) |
|
46 | { |
||
47 | 321 | $this->label = $label; |
|
48 | 321 | $this->destination = $destination; |
|
49 | 321 | $this->title = $title; |
|
50 | 321 | } |
|
51 | |||
52 | 312 | public function getLabel(): string |
|
56 | |||
57 | 258 | public function getDestination(): string |
|
58 | { |
||
59 | 258 | return $this->destination; |
|
60 | } |
||
61 | |||
62 | 249 | public function getTitle(): string |
|
66 | } |
||
67 |