| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class ProductDeletedResponder implements ApiResponderInterface, WorkerInterface |
||
| 23 | { |
||
| 24 | use Responder; |
||
|
|
|||
| 25 | |||
| 26 | private $productIds; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @inheritDoc |
||
| 30 | */ |
||
| 31 | public function process(ContractResponseInterface $response): ApiResponderInterface |
||
| 32 | { |
||
| 33 | $content = json_decode($response->getContent()); |
||
| 34 | isset($content->error_response) ? $this->error($content->error_response) : $this->success($content->aliexpress_solution_batch_product_delete_response); |
||
| 35 | return $this; |
||
| 36 | } |
||
| 37 | |||
| 38 | protected function success(\stdClass $response) |
||
| 46 | ; |
||
| 47 | } |
||
| 49 |