| Conditions | 4 |
| Paths | 8 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 99 | public function __toString() |
||
| 100 | { |
||
| 101 | $parameters = $this->getParameters(); |
||
| 102 | $scheme = $this->getScheme(); |
||
| 103 | |||
| 104 | return |
||
| 105 | (empty($scheme) ? '' : $scheme.'://'). |
||
| 106 | $this->getUserInfoString(). |
||
| 107 | $this->getHost(). |
||
| 108 | (empty($this->port) ? '' : ':'.$this->port). |
||
| 109 | ($this->getPath() ?? ''). |
||
| 110 | (empty($parameters) ? '' : '?'.http_build_query($parameters)); |
||
| 111 | } |
||
| 113 |