| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | final class Update implements Request |
||
| 20 | { |
||
| 21 | private $spaceId; |
||
| 22 | private $indexId; |
||
| 23 | private $key; |
||
| 24 | private $operations; |
||
| 25 | |||
| 26 | public function __construct(int $spaceId, int $indexId, array $key, array $operations) |
||
| 27 | { |
||
| 28 | $this->spaceId = $spaceId; |
||
| 29 | $this->indexId = $indexId; |
||
| 30 | $this->key = $key; |
||
| 31 | $this->operations = $operations; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getType() : int |
||
| 35 | { |
||
| 36 | return RequestTypes::UPDATE; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getBody() : array |
||
| 46 | ]; |
||
| 47 | } |
||
| 48 | } |
||
| 49 |