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