| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function __construct(UriInterface $uri) |
||
| 23 | { |
||
| 24 | $this->fragment = $uri->fragment(); |
||
| 25 | |||
| 26 | $this->host = $uri->host(); |
||
| 27 | |||
| 28 | $this->path = $uri->path(); |
||
| 29 | |||
| 30 | $this->port = $uri->port(); |
||
| 31 | |||
| 32 | $this->query = $uri->query(); |
||
| 33 | |||
| 34 | $this->scheme = $uri->scheme(); |
||
| 35 | |||
| 36 | $this->uri = $uri->__toString(); |
||
| 37 | |||
| 38 | $this->user = $uri->user(); |
||
| 39 | } |
||
| 41 |