1 | <?php |
||
7 | abstract class UriDecorator implements UriInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var UriInterface |
||
11 | */ |
||
12 | protected $decorated; |
||
13 | |||
14 | public function __construct(UriInterface $decorated) |
||
18 | |||
19 | public function toString() |
||
23 | |||
24 | /** |
||
25 | * @param UriInterface $that |
||
26 | * @param boolean $normalized whether to compare normalized versions of the URIs |
||
27 | * @return boolean |
||
28 | */ |
||
29 | public function equals(UriInterface $that, $normalized = false) |
||
33 | |||
34 | /** |
||
35 | * @return UriInterface |
||
36 | */ |
||
37 | public function normalize() |
||
41 | |||
42 | /** |
||
43 | * Alias of Uri::toString() |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | public function __toString() |
||
51 | |||
52 | /** |
||
53 | * @return string|null |
||
54 | */ |
||
55 | public function getHost() |
||
59 | |||
60 | /** |
||
61 | * @return string|null |
||
62 | */ |
||
63 | public function getPassword() |
||
67 | |||
68 | /** |
||
69 | * @return string|null |
||
70 | */ |
||
71 | public function getPath() |
||
75 | |||
76 | /** |
||
77 | * @return int|null |
||
78 | */ |
||
79 | public function getPort() |
||
83 | |||
84 | /** |
||
85 | * @return string|null |
||
86 | */ |
||
87 | public function getQuery() |
||
91 | |||
92 | /** |
||
93 | * @return string|null |
||
94 | */ |
||
95 | public function getScheme() |
||
99 | |||
100 | /** |
||
101 | * @return string|null |
||
102 | */ |
||
103 | public function getUsername() |
||
107 | |||
108 | /** |
||
109 | * @return string|null |
||
110 | */ |
||
111 | public function getFragment() |
||
115 | } |
||
116 |