From d3e978dbde4148fdec0e2bfd15c61fc40df83727 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 26 Sep 2023 22:52:49 +0300 Subject: [PATCH] add new methods --- src/app/model/request.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/app/model/request.php b/src/app/model/request.php index e26d732..d63470d 100644 --- a/src/app/model/request.php +++ b/src/app/model/request.php @@ -51,4 +51,19 @@ class AppModelRequest { return false; } } + + public function hasPost() : bool + { + return !empty($this->_post); + } + + public function hasGet() : bool + { + return !empty($this->_post); + } + + public function hasFiles() : bool + { + return !empty($this->_post); + } }