MongoHybrid\Client::getKey PHP Метод

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

Get value for specific key
public getKey ( string $collection, string $key, mixed $default = null ) : mixed
$collection string
$key string
$default mixed
Результат mixed
    public function getKey($collection, $key, $default = null)
    {
        $entry = $this->driver->findOne($collection, ['key' => $key]);
        return $entry ? $entry['val'] : $default;
    }