Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class LinkHelper implements HelperContract |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $base; |
||
19 | |||
20 | /** |
||
21 | * Initializes the URL instance. |
||
22 | * |
||
23 | * @param string $base |
||
24 | */ |
||
25 | 9 | public function __construct($base) |
|
26 | { |
||
27 | 9 | $this->base = $base; |
|
28 | 9 | } |
|
29 | |||
30 | /** |
||
31 | * Returns the name of the helper. |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | 6 | public function name() |
|
36 | { |
||
37 | 6 | return 'url'; |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * Sets the specified link. |
||
42 | * |
||
43 | * @param string $link |
||
44 | * @return string |
||
45 | */ |
||
46 | 6 | public function set($link) |
|
51 | } |
||
52 | } |
||
53 |