fkooman\OAuth\Client\PdoStorage::deleteState PHP Method

deleteState() public method

public deleteState ( State $state )
$state State
    public function deleteState(State $state)
    {
        $stmt = $this->db->prepare(sprintf('DELETE FROM %s WHERE client_config_id = :client_config_id AND state = :state', $this->prefix . 'states'));
        $stmt->bindValue(':client_config_id', $state->getClientConfigId(), PDO::PARAM_STR);
        $stmt->bindValue(':state', $state->getState(), PDO::PARAM_STR);
        $stmt->execute();
        return 1 === $stmt->rowCount();
    }