Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | final class DeleteRequest 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) |
|
25 | { |
||
26 | 24 | $this->body = [ |
|
27 | 24 | Keys::SPACE_ID => $spaceId, |
|
28 | 24 | Keys::INDEX_ID => $indexId, |
|
29 | 24 | Keys::KEY => $key, |
|
30 | 24 | ]; |
|
31 | } |
||
32 | |||
33 | 24 | public function getType() : int |
|
36 | } |
||
37 | |||
38 | 24 | public function getBody() : array |
|
43 |