public deleteState ( fkooman\OAuth\Client\State $state ) | ||
$state | fkooman\OAuth\Client\State |
public function deleteState(fkooman\OAuth\Client\State $state)
{
$collection = $this->mongo->selectCollection($this->db, 'state');
$result = $collection->remove(array('client_config_id' => $state->getClientConfigId(), 'state' => $state->getState()));
return is_array($result) && 1 == $result['ok'] && $result['n'] > 0 || $result;
}