public function validate($state)
    {
        $valid = $this->store->get(self::STATE_NAME) == $state;
        $this->store->delete(self::STATE_NAME);
        return $valid;
    }
public function validate($state)
    {
        $valid = $this->store->get(self::STATE_NAME) == $state;
        $this->store->delete(self::STATE_NAME);
        return $valid;
    }
public function validate ( $ state ) { $ valid = $ this -> store -> get ( self :: STATE_NAME ) == $ state ; $ this -> store -> delete ( self :: STATE_NAME ) ; return $ valid ; }
Perform validation of the returned state with the previously generated state.

@param string $state

@return boolean
Perform validation of the returned state with the previously generated state .