Total Complexity | 6 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | class SpatieUrlManipulator implements UrlManipulatorContract |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var Url |
||
13 | */ |
||
14 | protected $url; |
||
15 | |||
16 | 10 | public function setUrl(string $url) |
|
17 | { |
||
18 | 10 | $this->url = Url::fromString($url); |
|
19 | 10 | } |
|
20 | |||
21 | /** |
||
22 | * @return mixed |
||
23 | */ |
||
24 | 7 | public function getUrl() |
|
25 | { |
||
26 | 7 | return (string) $this->url; |
|
27 | } |
||
28 | |||
29 | 4 | public function appendQuery(array $newQuery) |
|
33 | } |
||
34 | 4 | } |
|
35 | |||
36 | |||
37 | 3 | public function removeQuery($key) |
|
40 | 3 | } |
|
41 | |||
42 | 3 | public function getQuery() : ?array |
|
47 | } |