| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | final class Upsert implements Request |
||
| 20 | { |
||
| 21 | private $spaceId; |
||
| 22 | private $tuple; |
||
| 23 | private $operations; |
||
| 24 | |||
| 25 | 2 | public function __construct(int $spaceId, array $tuple, array $operations) |
|
| 26 | { |
||
| 27 | 2 | $this->spaceId = $spaceId; |
|
| 28 | 2 | $this->tuple = $tuple; |
|
| 29 | 2 | $this->operations = $operations; |
|
| 30 | 2 | } |
|
| 31 | |||
| 32 | 2 | public function getType() : int |
|
| 33 | { |
||
| 34 | 2 | return RequestTypes::UPSERT; |
|
| 35 | } |
||
| 36 | |||
| 37 | 2 | public function getBody() : array |
|
| 43 | ]; |
||
| 44 | } |
||
| 45 | } |
||
| 46 |