*/ namespace LaswitchTech\Core; use Exception; class Request { private $Get; private $Post; private $Files; private $Server; private $Cookie; private $Request; public function __construct(){ $this->Get = $_GET; $this->Post = $_POST; $this->Files = $_FILES; $this->Server = $_SERVER; $this->Cookie = $_COOKIE; $this->Request = $_REQUEST; unset($_SERVER, $_GET, $_POST, $_FILES, $_COOKIE, $_REQUEST); } public function getHost() { ... } public function getHostSSL() { ... } public function getHostAddress() { ... } public function getUri() { ... } public function getUriSegments() { ... } public function getMethod() { ... } public function getQueryString() { ... } public function getParams($type, $key = null){ ... } public function decode($string){ ... } }