| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class ListsGetHandler extends AbstractHandler |
||
| 19 | { |
||
| 20 | const API_ENDPOINT = '/rest/subscribers_list/lists'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return array |
||
| 24 | */ |
||
| 25 | 7 | public function getSubscriberLists(): array |
|
| 26 | { |
||
| 27 | 7 | $getParameters = []; |
|
| 28 | 7 | $postParameters = []; |
|
| 29 | |||
| 30 | 7 | $response = $this->processRequest($getParameters, $postParameters); |
|
| 31 | 7 | return $response->lists; |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | 7 | protected function getApiEndpoint(): string |
|
| 40 | } |
||
| 41 | } |
||
| 42 |