| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | public function downtime(int $siteId, string $startedAt, string $endedAt): array |
||
| 17 | { |
||
| 18 | $startedAt = $this->convertDateFormat($startedAt); |
||
|
|
|||
| 19 | $endedAt = $this->convertDateFormat($endedAt); |
||
| 20 | |||
| 21 | return $this->transformCollection( |
||
| 22 | $this->get("sites/$siteId/downtime?filter[started_at]={$startedAt}&filter[ended_at]={$endedAt}")['data'], |
||
| 23 | Downtime::class |
||
| 24 | ); |
||
| 27 |