for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Tarantool Client package.
*
* (c) Eugene Leonovich <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Tarantool\Client\Request;
use Tarantool\Client\Keys;
use Tarantool\Client\RequestTypes;
final class UpdateRequest implements Request
{
/** @var non-empty-array<int, int|array> */
private $body;
public function __construct(int $spaceId, int $indexId, array $key, array $operations)
$this->body = [
Keys::SPACE_ID => $spaceId,
Keys::INDEX_ID => $indexId,
Keys::KEY => $key,
Keys::TUPLE => $operations,
];
}
public function getType() : int
return RequestTypes::UPDATE;
public function getBody() : array
return $this->body;