Browse Source

add new methods

main
ghost 1 year ago
parent
commit
d3e978dbde
  1. 15
      src/app/model/request.php

15
src/app/model/request.php

@ -51,4 +51,19 @@ class AppModelRequest { @@ -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);
}
}

Loading…
Cancel
Save