1 | <?php |
||
15 | class Uri extends AbstractUri implements ZapheusUriInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var \Psr\Http\Message\UriInterface |
||
19 | */ |
||
20 | protected $uri; |
||
21 | |||
22 | /** |
||
23 | * Initializes the URI instance. |
||
24 | * |
||
25 | * @param \Psr\Http\Message\UriInterface $uri |
||
26 | */ |
||
27 | 54 | public function __construct(UriInterface $uri) |
|
31 | |||
32 | /** |
||
33 | * Return the string representation as a URI reference. |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | 3 | public function __toString() |
|
41 | |||
42 | /** |
||
43 | * Returns the authority component of the URI. |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | 3 | public function authority() |
|
51 | |||
52 | /** |
||
53 | * Returns the fragment component of the URI. |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | 3 | public function fragment() |
|
61 | |||
62 | /** |
||
63 | * Returns the host component of the URI. |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | 3 | public function host() |
|
71 | |||
72 | /** |
||
73 | * Returns the path component of the URI. |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | 3 | public function path() |
|
81 | |||
82 | /** |
||
83 | * Returns the port component of the URI. |
||
84 | * |
||
85 | * @return null|integer |
||
86 | */ |
||
87 | 3 | public function port() |
|
91 | |||
92 | /** |
||
93 | * Returns the query string of the URI. |
||
94 | * |
||
95 | * @return string |
||
96 | */ |
||
97 | 3 | public function query() |
|
101 | |||
102 | /** |
||
103 | * Returns the scheme component of the URI. |
||
104 | * |
||
105 | * @return string |
||
106 | */ |
||
107 | 3 | public function scheme() |
|
111 | |||
112 | /** |
||
113 | * Returns the user information component of the URI. |
||
114 | * |
||
115 | * @return string |
||
116 | */ |
||
117 | 3 | public function user() |
|
121 | } |
||
122 |