| 1 | <?php |
||
| 19 | final class UpdateRequest implements Request |
||
| 20 | { |
||
| 21 | /** @var non-empty-array<int, int|array> */ |
||
| 22 | private $body; |
||
| 23 | |||
| 24 | 24 | public function __construct(int $spaceId, int $indexId, array $key, array $operations) |
|
| 25 | { |
||
| 26 | 24 | $this->body = [ |
|
| 27 | 24 | Keys::SPACE_ID => $spaceId, |
|
| 28 | 24 | Keys::INDEX_ID => $indexId, |
|
| 29 | 24 | Keys::KEY => $key, |
|
| 30 | 24 | Keys::TUPLE => $operations, |
|
| 31 | ]; |
||
| 32 | 24 | } |
|
| 33 | |||
| 34 | 24 | public function getType() : int |
|
| 38 | |||
| 39 | 24 | public function getBody() : array |
|
| 43 | } |
||
| 44 |