Passed
Push — master ( d6782e...149d2c )
by Caen
12:13 queued 11s
created

ForwardsHyperlinks::formatLink()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Hyde\Framework\Foundation\Concerns;
4
5
/**
6
 * @internal Single-use trait for the HydeKernel class.
7
 *
8
 * @see \Hyde\Framework\HydeKernel
9
 */
10
trait ForwardsHyperlinks
11
{
12
    public function formatLink(string $destination): string
13
    {
14
        return $this->hyperlinks->formatLink($destination);
15
    }
16
17
    public function relativeLink(string $destination): string
18
    {
19
        return $this->hyperlinks->relativeLink($destination);
20
    }
21
22
    public function image(string $name, bool $preferQualifiedUrl = false): string
23
    {
24
        return $this->hyperlinks->image($name, $preferQualifiedUrl);
25
    }
26
27
    public function hasSiteUrl(): bool
28
    {
29
        return $this->hyperlinks->hasSiteUrl();
30
    }
31
32
    public function url(string $path = '', ?string $default = null): string
33
    {
34
        return $this->hyperlinks->url($path, $default);
35
    }
36
}
37