fkooman\OAuth\Client\MongoStorage::getState PHP Метод

getState() публичный Метод

public getState ( $clientConfigId, $state )
    public function getState($clientConfigId, $state)
    {
        $collection = $this->mongo->selectCollection($this->db, 'state');
        $result = $collection->findOne(array('client_config_id' => $clientConfigId, 'state' => $state));
        if (null !== $result) {
            $result['scope'] = Scope::fromString($result['scope']);
            return new fkooman\OAuth\Client\State($result);
        }
        return false;
    }