src/Cookie/Manager.php
public function getCookie(
        string $scope,
        string $name,
        string $path = "",
        string $domain = "",
        bool $secure = false,
        bool $httponly = false
    ) {
        if (isset($_COOKIE[$name])) {
            if ($this->canSet($scope)) {
                return $_COOKIE[$name];
            }

            setcookie($name, "", time() - 360, $path, $domain, $secure, $httponly);
        }

        return null;
    }
public function getCookie(
        string $scope,
        string $name,
        string $path = "",
        string $domain = "",
        bool $secure = false,
        bool $httponly = false
    ) {
        if (isset($_COOKIE[$name])) {
            if ($this->canSet($scope)) {
                return $_COOKIE[$name];
            }

            setcookie($name, "", time() - 360, $path, $domain, $secure, $httponly);
        }

        return null;
    }
public function getCookie ( string $ scope , string $ name , string $ path = "" , string $ domain = "" , bool $ secure = false , bool $ httponly = false ) { if ( isset ( $ _COOKIE [ $ name ] ) ) { if ( $ this -> canSet ( $ scope ) ) { return $ _COOKIE [ $ name ] ; } setcookie ( $ name , "" , time ( ) - 360 , $ path , $ domain , $ secure , $ httponly ) ; } return null ; }
Fetch a cookie if there is consent. Also deletes cookies for which is no longer consent.

@param  string  $scope
@param  string  $name
@param  string  $path
@param  string  $domain
@param  boolean $secure
@param  boolean $httponly

@return mixed

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.BooleanArgumentFlag)
Fetch a cookie if there is consent . Also deletes cookies for which is no longer consent .