| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class OrderResponse extends ValidationResponse |
||
| 13 | { |
||
| 14 | 1 | protected function parseDataModel(array $raw) |
|
| 15 | { |
||
| 16 | 1 | if (isset($raw['purchaseTokenData'])) { |
|
| 17 | 1 | $this->dataModel = \json_decode($raw['purchaseTokenData'], true); |
|
| 18 | } |
||
| 19 | 1 | } |
|
| 20 | |||
| 21 | /** |
||
| 22 | * Consumption status, which exists only for one-off products. The options are as follows: |
||
| 23 | * 0: not consumed |
||
| 24 | * 1: consumed |
||
| 25 | * |
||
| 26 | * @return string|null |
||
| 27 | */ |
||
| 28 | public function getConsumptionState() |
||
| 31 | } |
||
| 32 | } |
||
| 33 |