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