1 | <?php |
||
18 | class Request |
||
19 | { |
||
20 | protected $domain; |
||
21 | protected $uri; |
||
22 | protected $method; |
||
23 | protected $https; |
||
24 | |||
25 | /** |
||
26 | * Returns domain or null when not set |
||
27 | * |
||
28 | * @return string|null |
||
29 | */ |
||
30 | public function getDomain() |
||
34 | |||
35 | /** |
||
36 | * Sets domain |
||
37 | * |
||
38 | * @return \KM\Saffron\Request |
||
39 | */ |
||
40 | public function setDomain($domain) |
||
45 | |||
46 | /** |
||
47 | * Returns uri or null when not set |
||
48 | * |
||
49 | * @return string|null |
||
50 | */ |
||
51 | public function getUri() |
||
55 | |||
56 | /** |
||
57 | * Sets uri |
||
58 | * @return \KM\Saffron\Request |
||
59 | */ |
||
60 | public function setUri($uri) |
||
65 | |||
66 | /** |
||
67 | * Returns method or null when not set |
||
68 | * |
||
69 | * @return string|null |
||
70 | */ |
||
71 | public function getMethod() |
||
75 | |||
76 | /** |
||
77 | * Sets method |
||
78 | * |
||
79 | * @return \KM\Saffron\Request |
||
80 | */ |
||
81 | public function setMethod($method) |
||
86 | |||
87 | /** |
||
88 | * Returns info whether connection is secured by https |
||
89 | * |
||
90 | * @return bool |
||
91 | */ |
||
92 | public function getHttps() |
||
96 | |||
97 | /** |
||
98 | * Sets info whether connection is secured by https |
||
99 | * |
||
100 | * @param boolean $https |
||
101 | * @return \KM\Saffron\Request |
||
102 | */ |
||
103 | public function setHttps($https) |
||
108 | |||
109 | /** |
||
110 | * Builds request object from super globals |
||
111 | * |
||
112 | * @return \KM\Saffron\Request |
||
113 | */ |
||
114 | public static function createFromGlobals() |
||
143 | } |
||
144 |