| Total Complexity | 11 |
| Total Lines | 115 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| 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 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 1 | public function getScheme(): string |
|
| 46 | { |
||
| 47 | 1 | return $this->scheme; |
|
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | 1 | public function getHost(): string |
|
| 54 | { |
||
| 55 | 1 | return $this->host; |
|
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return int |
||
| 60 | */ |
||
| 61 | 1 | public function getPort(): int |
|
| 62 | { |
||
| 63 | 1 | return $this->port; |
|
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | 1 | public function getUser(): string |
|
| 70 | { |
||
| 71 | 1 | return $this->user; |
|
| 72 | } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return string |
||
| 76 | */ |
||
| 77 | 1 | public function getPass(): string |
|
| 78 | { |
||
| 79 | 1 | return $this->pass; |
|
| 80 | } |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @return string |
||
| 84 | */ |
||
| 85 | 1 | public function getPath(): string |
|
| 86 | { |
||
| 87 | 1 | return $this->path; |
|
| 88 | } |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @return string |
||
| 92 | */ |
||
| 93 | 1 | public function getQuery(): string |
|
| 94 | { |
||
| 95 | 1 | return $this->query; |
|
| 96 | } |
||
| 97 | |||
| 98 | /** |
||
| 99 | * @return string |
||
| 100 | */ |
||
| 101 | 1 | public function getFragment(): string |
|
| 102 | { |
||
| 103 | 1 | return $this->fragment; |
|
| 104 | } |
||
| 105 | |||
| 106 | /** |
||
| 107 | * @return string |
||
| 108 | */ |
||
| 109 | 2 | public function getRouteName(): string |
|
| 112 | } |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @return array |
||
| 116 | */ |
||
| 117 | 1 | public function getExtra(): array |
|
| 120 | } |
||
| 121 | } |
||
| 122 |