| Total Complexity | 3 |
| Total Lines | 62 |
| 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 $pageToken |
||
| 34 | * @param array $metrics |
||
| 35 | * @param null|int $since |
||
| 36 | 1 | * @param null|int $until |
|
| 37 | */ |
||
| 38 | 1 | public function __construct(string $pageToken, array $metrics, ?int $since = null, ?int $until = null) |
|
| 45 | 1 | } |
|
| 46 | |||
| 47 | 1 | /** |
|
| 48 | * @param string|null $method |
||
| 49 | 1 | * |
|
| 50 | * @return RequestInterface |
||
| 51 | 1 | */ |
|
| 52 | public function build(?string $method = null): RequestInterface |
||
| 59 | } |
||
| 60 | 1 | ||
| 61 | /** |
||
| 62 | 1 | * @return string |
|
| 63 | 1 | */ |
|
| 64 | 1 | public function buildQuery(): string |
|
| 75 |