| Total Complexity | 7 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | trait ForwardsHyperlinks |
||
| 15 | { |
||
| 16 | public function formatLink(string $destination): string |
||
| 17 | { |
||
| 18 | return $this->hyperlinks->formatLink($destination); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function relativeLink(string $destination): string |
||
| 22 | { |
||
| 23 | return $this->hyperlinks->relativeLink($destination); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function mediaLink(string $destination, bool $validate = false): string |
||
| 29 | } |
||
| 30 | |||
| 31 | public function asset(string $name, bool $preferQualifiedUrl = false): string |
||
| 34 | } |
||
| 35 | |||
| 36 | public function url(string $path = ''): string |
||
| 37 | { |
||
| 38 | return $this->hyperlinks->url($path); |
||
| 39 | } |
||
| 40 | |||
| 41 | public function route(string $key): ?Route |
||
| 42 | { |
||
| 43 | return $this->hyperlinks->route($key); |
||
| 44 | } |
||
| 45 | |||
| 46 | public function hasSiteUrl(): bool |
||
| 49 | } |
||
| 50 | } |
||
| 51 |