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