@@ -83,7 +83,7 @@ public function __construct(UrlScript $url, $query = NULL, $post = NULL, $files
8383 /**
8484 * Returns URL object.
8585 */
86- public function getUrl (): UrlScript
86+ final public function getUrl (): UrlScript
8787 {
8888 return clone $ this ->url ;
8989 }
@@ -97,7 +97,7 @@ public function getUrl(): UrlScript
9797 * If no key is passed, returns the entire array.
9898 * @return mixed
9999 */
100- public function getQuery (string $ key = NULL )
100+ final public function getQuery (string $ key = NULL )
101101 {
102102 if (func_num_args () === 0 ) {
103103 return $ this ->url ->getQueryParameters ();
@@ -113,7 +113,7 @@ public function getQuery(string $key = NULL)
113113 * If no key is passed, returns the entire array.
114114 * @return mixed
115115 */
116- public function getPost (string $ key = NULL )
116+ final public function getPost (string $ key = NULL )
117117 {
118118 if (func_num_args () === 0 ) {
119119 return $ this ->post ;
@@ -128,7 +128,7 @@ public function getPost(string $key = NULL)
128128 * Returns uploaded file.
129129 * @return FileUpload|array|NULL
130130 */
131- public function getFile (string $ key )
131+ final public function getFile (string $ key )
132132 {
133133 return $ this ->files [$ key ] ?? NULL ;
134134 }
@@ -137,7 +137,7 @@ public function getFile(string $key)
137137 /**
138138 * Returns uploaded files.
139139 */
140- public function getFiles (): array
140+ final public function getFiles (): array
141141 {
142142 return $ this ->files ;
143143 }
@@ -147,7 +147,7 @@ public function getFiles(): array
147147 * Returns variable provided to the script via HTTP cookies.
148148 * @return mixed
149149 */
150- public function getCookie (string $ key )
150+ final public function getCookie (string $ key )
151151 {
152152 if (func_num_args () > 1 ) {
153153 trigger_error (__METHOD__ . '() parameter $default is deprecated, use operator ?? ' , E_USER_DEPRECATED );
@@ -159,7 +159,7 @@ public function getCookie(string $key)
159159 /**
160160 * Returns variables provided to the script via HTTP cookies.
161161 */
162- public function getCookies (): array
162+ final public function getCookies (): array
163163 {
164164 return $ this ->cookies ;
165165 }
@@ -191,7 +191,7 @@ public function isMethod(string $method): bool
191191 * plain, HTTP-specified header name (e.g. 'Accept-Encoding').
192192 * @return string|NULL
193193 */
194- public function getHeader (string $ header )
194+ final public function getHeader (string $ header )
195195 {
196196 if (func_num_args () > 1 ) {
197197 trigger_error (__METHOD__ . '() parameter $default is deprecated, use operator ?? ' , E_USER_DEPRECATED );
@@ -214,7 +214,7 @@ public function getHeaders(): array
214214 * Returns referrer.
215215 * @return Url|NULL
216216 */
217- public function getReferer ()
217+ final public function getReferer ()
218218 {
219219 return isset ($ this ->headers ['referer ' ]) ? new Url ($ this ->headers ['referer ' ]) : NULL ;
220220 }
0 commit comments