diff --git a/src/app/model/request.php b/src/app/model/request.php new file mode 100644 index 0000000..e5d7bc1 --- /dev/null +++ b/src/app/model/request.php @@ -0,0 +1,54 @@ +_address = $address; + $this->_post = $post; + $this->_files = $files; + } + + public function get(string $key) : mixed + { + if (isset($this->_get[$key])) + { + return $this->_get[$key]; + } + + else + { + return false; + } + } + + public function post(string $key) : mixed + { + if (isset($this->_post[$key])) + { + return $this->_post[$key]; + } + + else + { + return false; + } + } + + public function files(string $key) : mixed + { + if (isset($this->_files[$key])) + { + return $this->_files[$key]; + } + + else + { + return false; + } + } +}