| 1 | <?php |
||
| 19 | final class Reference implements ReferenceInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $label; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $destination; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $title; |
||
| 35 | |||
| 36 | 318 | public function __construct(string $label, string $destination, string $title) |
|
| 42 | |||
| 43 | 309 | public function getLabel(): string |
|
| 47 | |||
| 48 | 258 | public function getDestination(): string |
|
| 52 | |||
| 53 | 249 | public function getTitle(): string |
|
| 57 | |||
| 58 | /** |
||
| 59 | * Normalize reference label |
||
| 60 | * |
||
| 61 | * This enables case-insensitive label matching |
||
| 62 | * |
||
| 63 | * @param string $string |
||
| 64 | * |
||
| 65 | * @return string |
||
| 66 | * |
||
| 67 | * @deprecated Use TextNormalizer::normalize() instead |
||
| 68 | */ |
||
| 69 | public static function normalizeReference(string $string): string |
||
| 75 | } |
||
| 76 |