-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
linger_request.stub.php
48 lines (30 loc) · 1.36 KB
/
linger_request.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/** @generate-legacy-arginfo */
class Linger_Framework_Request
{
protected static object $_instance;
protected string $_method;
protected string $_uri;
protected array $_cookie;
protected array $_query;
protected array $_param;
protected array $_post;
protected array $_files;
private function __construct();
public function getMethod(): string;
public function getUri(): string;
public function getQuery(?string $query = "", mixed $default = null, callable $fileter = null): mixed;
public function getPost(?string $query = "", mixed $default = null, callable $fileter = null): mixed;
public function getParam(?string $query = "", mixed $default = null, callable $fileter = null): mixed;
public function getFile(?string $query = "", mixed $default = null, callable $fileter = null): mixed;
public function getCookie(?string $query = "", mixed $default = null, callable $fileter = null): mixed;
public function isAjax(): bool;
public function isPost(): bool;
public function isGet(): bool;
public function isCli(): bool;
public function setMethod(string $method): object;
public function setUri(string $uri): object;
public function setParam(array $param): object;
public function setPost(array $post): object;
public function setQuery(array $query): object;
}