Total Complexity | 3 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class InsightsRequest extends AbstractRequest implements QueryRequestInterface |
||
12 | { |
||
13 | use UtilityTrait; |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $metrics; |
||
19 | |||
20 | /** |
||
21 | * @var null|int |
||
22 | */ |
||
23 | protected $since; |
||
24 | |||
25 | /** |
||
26 | * @var null|int |
||
27 | */ |
||
28 | protected $until; |
||
29 | |||
30 | /** |
||
31 | * InsightsRequest constructor. |
||
32 | * |
||
33 | * @param string $path |
||
34 | * @param array $metrics |
||
35 | * @param null|int $since |
||
36 | * @param null|int $until |
||
37 | */ |
||
38 | 3 | public function __construct(string $path, array $metrics, ?int $since = null, ?int $until = null) |
|
45 | 3 | } |
|
46 | |||
47 | /** |
||
48 | * @param string $method |
||
49 | * |
||
50 | * @return RequestInterface |
||
51 | */ |
||
52 | 3 | public function build(string $method = 'post'): RequestInterface |
|
60 | } |
||
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | 3 | public function buildQuery(): string |
|
76 |