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

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

Set multiple hash fields to multiple values
public hmset ( string $key )
$key string
    public function hmset($key)
    {
        $set = $this->getKey($collection, $key, []);
        $args = func_get_args();
        for ($i = 1; $i < count($fields); $i++) {
            $field = $args[$i];
            $value = isset($args[$i + 1]) ? $args[$i + 1] : null;
            $set[$field] = $value;
            $i = $i + 1;
        }
        $this->setKey($collection, $key, $set);
    }