Conditions | 4 |
Paths | 8 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
63 | public function __toString() |
||
64 | { |
||
65 | $parameters = $this->getParameters(); |
||
66 | $scheme = $this->getScheme(); |
||
67 | |||
68 | return |
||
69 | (empty($scheme) ? '' : $scheme.'://'). |
||
70 | $this->getUserInfoString(). |
||
71 | $this->getHost(). |
||
72 | (empty($this->port) ? '' : ':'.$this->port). |
||
73 | ($this->getPath() ?? ''). |
||
74 | (empty($parameters) ? '' : '?'.http_build_query($parameters)); |
||
75 | } |
||
77 |