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

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

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

@param  string $key

@return int|null
Get cookie with FILTER_SANITIZE_NUMBER_INT