| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class OrderInfoResponder implements ApiResponderInterface, WorkerInterface |
||
| 23 | { |
||
| 24 | use Responder; |
||
|
|
|||
| 25 | |||
| 26 | private $buyerInfo; |
||
| 27 | |||
| 28 | private $productsInformation = []; |
||
| 29 | |||
| 30 | private $status; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritDoc |
||
| 34 | */ |
||
| 35 | public function process(ContractResponseInterface $response): ApiResponderInterface |
||
| 36 | { |
||
| 37 | $content = json_decode($response->getContent()); |
||
| 38 | isset($content->error_response) ? $this->error($content->error_response) : $this->success($content->aliexpress_solution_order_info_get_response); |
||
| 39 | return $this; |
||
| 40 | } |
||
| 41 | |||
| 42 | protected function success(\stdClass $response) |
||
| 53 | ; |
||
| 54 | } |
||
| 56 |