Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | final class EvaluateRequest implements Request |
||
20 | { |
||
21 | /** @var non-empty-array<int, string|array> */ |
||
|
|||
22 | private $body; |
||
23 | |||
24 | 426 | public function __construct(string $expr, array $args = []) |
|
25 | { |
||
26 | 426 | $this->body = [ |
|
27 | 426 | Keys::EXPR => $expr, |
|
28 | 426 | Keys::TUPLE => $args, |
|
29 | 426 | ]; |
|
30 | } |
||
31 | |||
32 | 426 | public function getType() : int |
|
35 | } |
||
36 | |||
37 | 418 | public function getBody() : array |
|
42 |