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