X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Frequest%2Fconsole%2Fclass_ConsoleRequest.php;h=dd5f6ed79deb5585a30b187a72fb35820e474452;hb=ef7a7e55c59c9e887e6bb09c8c02b8126309f716;hp=3a85f3e2b495698177d8bbbc8badfafc5853c3ea;hpb=cad1ab5ecb2935a6ebf678555860c3bd96b525b0;p=core.git diff --git a/framework/main/classes/request/console/class_ConsoleRequest.php b/framework/main/classes/request/console/class_ConsoleRequest.php index 3a85f3e2..dd5f6ed7 100644 --- a/framework/main/classes/request/console/class_ConsoleRequest.php +++ b/framework/main/classes/request/console/class_ConsoleRequest.php @@ -11,11 +11,7 @@ use Org\Mxchange\CoreFramework\Request\Requestable; * * @author Roland Haeder * @version 0.0.0 -<<<<<<< HEAD:framework/main/classes/request/console/class_ConsoleRequest.php - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team -======= - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2016 Core Developer Team ->>>>>>> Some updates::inc/main/classes/request/console/class_ConsoleRequest.php + * @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 * @@ -109,7 +105,7 @@ class ConsoleRequest extends BaseRequest implements Requestable { * @return $headerValue Value of the header or 'null' if not found * @throws UnsupportedOperationException This method should never be called */ - public function getHeaderElement ($headerName) { + public function getHeaderElement (string $headerName) { // Console doesn't have any headers throw new UnsupportedOperationException(array($this, __FUNCTION__, $executorInstance), self::EXCEPTION_UNSPPORTED_OPERATION); } @@ -131,7 +127,7 @@ class ConsoleRequest extends BaseRequest implements Requestable { * @return $cookieValue Value of cookie or null if not found * @throws UnsupportedOperationException This method should never be called */ - public final function readCookie ($cookieName) { + public final function readCookie (string $cookieName) { // There are no cookies on console throw new UnsupportedOperationException(array($this, __FUNCTION__, $executorInstance), self::EXCEPTION_UNSPPORTED_OPERATION); }