| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class ListDeleteHandler extends AbstractHandler |
||
| 19 | { |
||
| 20 | const API_ENDPOINT = '/rest/subscribers_list/delete'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $listHash |
||
| 24 | * @return null |
||
| 25 | */ |
||
| 26 | 21 | public function deleteSubscriberList(string $listHash) |
|
| 27 | { |
||
| 28 | 21 | $getParameters = []; |
|
| 29 | 6 | $postParameters = [ |
|
| 30 | 21 | 'hash' => $listHash |
|
| 31 | ]; |
||
| 32 | |||
| 33 | 21 | $this->processRequest($getParameters, $postParameters); |
|
| 34 | 7 | return null; |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | 7 | protected function getApiEndpoint(): string |
|
| 43 | } |
||
| 44 | } |
||
| 45 |