Total Complexity | 11 |
Total Lines | 85 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class UrlInfo |
||
6 | { |
||
7 | protected $scheme = ''; |
||
8 | protected $host = ''; |
||
9 | protected $port = 80; |
||
10 | protected $user = ''; |
||
11 | protected $pass = ''; |
||
12 | protected $path = ''; |
||
13 | protected $query = ''; |
||
14 | protected $fragment = ''; |
||
15 | protected $routeName = ''; |
||
16 | protected $extra = []; |
||
17 | |||
18 | 2 | public function __construct( |
|
40 | 2 | } |
|
41 | |||
42 | 1 | public function getScheme(): string |
|
43 | { |
||
44 | 1 | return $this->scheme; |
|
45 | } |
||
46 | |||
47 | 1 | public function getHost(): string |
|
48 | { |
||
49 | 1 | return $this->host; |
|
50 | } |
||
51 | |||
52 | 1 | public function getPort(): int |
|
53 | { |
||
54 | 1 | return $this->port; |
|
55 | } |
||
56 | |||
57 | 1 | public function getUser(): string |
|
58 | { |
||
59 | 1 | return $this->user; |
|
60 | } |
||
61 | |||
62 | 1 | public function getPass(): string |
|
63 | { |
||
64 | 1 | return $this->pass; |
|
65 | } |
||
66 | |||
67 | 1 | public function getPath(): string |
|
68 | { |
||
69 | 1 | return $this->path; |
|
70 | } |
||
71 | |||
72 | 1 | public function getQuery(): string |
|
75 | } |
||
76 | |||
77 | 1 | public function getFragment(): string |
|
78 | { |
||
79 | 1 | return $this->fragment; |
|
80 | } |
||
81 | |||
82 | 2 | public function getRouteName(): string |
|
83 | { |
||
84 | 2 | return $this->routeName; |
|
85 | } |
||
86 | |||
87 | 1 | public function getExtra(): array |
|
90 | } |
||
91 | } |
||
92 |