| Total Complexity | 3 | 
| Total Lines | 25 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 22 | class ProductPostStandardResponder implements ApiResponderInterface, WorkerInterface | ||
| 23 | { | ||
| 24 | use Responder; | ||
|  | |||
| 25 | |||
| 26 | private $productId; | ||
| 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_product_post_response); | ||
| 35 | return $this; | ||
| 36 | } | ||
| 37 | |||
| 38 | protected function success(\stdClass $response) | ||
| 47 | ; | ||
| 48 | } | ||
| 50 |