X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Finterfaces%2Frequest%2Fclass_Requestable.php;h=55f4cac4cc10435a78808ee826cfd4cec9c17d3a;hb=ef7a7e55c59c9e887e6bb09c8c02b8126309f716;hp=7639954913b985929410b99b9ae476ae6b9dd553;hpb=146c8b3c929a1b0ab17d6605e5ae949ac44899c1;p=core.git diff --git a/framework/main/interfaces/request/class_Requestable.php b/framework/main/interfaces/request/class_Requestable.php index 76399549..55f4cac4 100644 --- a/framework/main/interfaces/request/class_Requestable.php +++ b/framework/main/interfaces/request/class_Requestable.php @@ -1,16 +1,16 @@ * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -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