X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Finterfaces%2Frequest%2Fclass_Requestable.php;h=55f4cac4cc10435a78808ee826cfd4cec9c17d3a;hb=ef7a7e55c59c9e887e6bb09c8c02b8126309f716;hp=34ca1613c4f8609779ff415042cb300e72b3b29b;hpb=adcdfc000eba8fac128786adcb8cb480085e7e76;p=core.git diff --git a/framework/main/interfaces/request/class_Requestable.php b/framework/main/interfaces/request/class_Requestable.php index 34ca1613..55f4cac4 100644 --- a/framework/main/interfaces/request/class_Requestable.php +++ b/framework/main/interfaces/request/class_Requestable.php @@ -34,7 +34,7 @@ interface Requestable extends FrameworkInterface { * @param $element Name of the request element we want to check * @return $isSet Whether the request element is set */ - function isRequestElementSet ($element); + function isRequestElementSet (string $element); /** * Getter for request element or 'null' if element was not found @@ -43,7 +43,7 @@ interface Requestable extends FrameworkInterface { * @return $value Value of the found request element or 'null' if the * element was not found */ - function getRequestElement ($element); + function getRequestElement (string $element); /** * Setter for request elements @@ -52,7 +52,7 @@ interface Requestable extends FrameworkInterface { * @param $value Value to set * @return void */ - function setRequestElement ($element, $value); + function setRequestElement (string $element, $value); /** * Setter for request data array @@ -75,7 +75,7 @@ interface Requestable extends FrameworkInterface { * @param $isValid Whether the request is valid * @return void */ - function requestIsValid ($isValid = true); + function requestIsValid (bool $isValid = true); /** * Returns whether this request is valid