| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| 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 | 14 | public function __construct(int $spaceId, int $indexId, array $key, array $operations) |
|
| 27 | { |
||
| 28 | 14 | $this->spaceId = $spaceId; |
|
| 29 | 14 | $this->indexId = $indexId; |
|
| 30 | 14 | $this->key = $key; |
|
| 31 | 14 | $this->operations = $operations; |
|
| 32 | 14 | } |
|
| 33 | |||
| 34 | 14 | public function getType() : int |
|
| 35 | { |
||
| 36 | 14 | return RequestTypes::UPDATE; |
|
| 37 | } |
||
| 38 | |||
| 39 | 14 | public function getBody() : array |
|
| 46 | ]; |
||
| 47 | } |
||
| 48 | } |
||
| 49 |