src/Http/Cookie/Cookie.php
public function matchesScheme($scheme)
    {
        $scheme = strtolower($scheme);
        $secure = $this->_data['secure'];
        return ($secure && $scheme === 'https') || (!$secure && $scheme === 'http');
    }
public function matchesScheme($scheme)
    {
        $scheme = strtolower($scheme);
        $secure = $this->_data['secure'];
        return ($secure && $scheme === 'https') || (!$secure && $scheme === 'http');
    }
public function matchesScheme ( $ scheme ) { $ scheme = strtolower ( $ scheme ) ; $ secure = $ this -> _data [ 'secure' ] ; return ( $ secure && $ scheme === 'https' ) || ( ! $ secure && $ scheme === 'http' ) ; }
Checks if a domain match the Cookie scheme.

@param  string  $scheme The scheme name.
@return boolean         Returns `true` if schemes match, `false otherwise`.
Checks if a domain match the Cookie scheme .