Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
19 | 2 | public function list(int $page = 1, int $perPage = 100): ApiResponse |
|
20 | { |
||
21 | 2 | if (1 > $perPage || 1000 < $perPage) { |
|
22 | 2 | throw new DripException('Invalid per page; maximum 1000'); |
|
23 | } |
||
24 | |||
25 | 1 | return $this->sendGet( |
|
26 | 1 | ':account_id:/event_actions', |
|
27 | [ |
||
28 | 1 | 'page' => $page, |
|
29 | 1 | 'per_page' => $perPage, |
|
30 | ] |
||
84 |