public function get($key)
    {
        if (isset($this->store[$key])) {
            return filter_var($this->store[$key], FILTER_SANITIZE_STRING);
        }

        return filter_input(INPUT_COOKIE, $key, FILTER_SANITIZE_STRING);
    }
public function get($key)
    {
        if (isset($this->store[$key])) {
            return filter_var($this->store[$key], FILTER_SANITIZE_STRING);
        }

        return filter_input(INPUT_COOKIE, $key, FILTER_SANITIZE_STRING);
    }
public function get ( $ key ) { if ( isset ( $ this -> store [ $ key ] ) ) { return filter_var ( $ this -> store [ $ key ] , FILTER_SANITIZE_STRING ) ; } return filter_input ( INPUT_COOKIE , $ key , FILTER_SANITIZE_STRING ) ; }
Get cookie with FILTER_SANITIZE_STRING

@param  string $key

@return string|null
Get cookie with FILTER_SANITIZE_STRING