protected function isProtected(string $cookie): bool
    {
        if (in_array($cookie, $this->config->cookiesExcluded())) {
            //Excluded
            return false;
        }

        return $this->config->cookieProtectionMethod() != HttpConfig::COOKIE_UNPROTECTED;
    }
protected function isProtected(string $cookie): bool
    {
        if (in_array($cookie, $this->config->cookiesExcluded())) {
            //Excluded
            return false;
        }

        return $this->config->cookieProtectionMethod() != HttpConfig::COOKIE_UNPROTECTED;
    }
protected function isProtected ( string $ cookie ) : bool { if ( in_array ( $ cookie , $ this -> config -> cookiesExcluded ( ) ) ) { //Excluded return false ; } return $ this -> config -> cookieProtectionMethod ( ) != HttpConfig :: COOKIE_UNPROTECTED ; }
Check if cookie has to be protected.

@param string $cookie

@return bool
Check if cookie has to be protected .