Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function __construct(UriInterface $uri) |
||
28 | { |
||
29 | $this->fragment = $uri->getFragment(); |
||
30 | |||
31 | $this->query = $uri->getQuery(); |
||
32 | |||
33 | $this->authority = $uri->getAuthority(); |
||
34 | |||
35 | $this->host = $uri->getHost(); |
||
36 | |||
37 | $this->path = $uri->getPath(); |
||
38 | |||
39 | $this->port = $uri->getPort(); |
||
40 | |||
41 | $this->scheme = $uri->getScheme(); |
||
42 | |||
43 | $this->user = $uri->getUserInfo(); |
||
44 | |||
45 | $this->uri = $uri->__toString(); |
||
46 | } |
||
48 |