| Total Complexity | 11 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class CompletePurchaseResponse extends AbstractCompletePurchaseResponse |
||
| 13 | { |
||
| 14 | use CompletePurchaseResponseTrait; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @inheritDoc |
||
| 18 | */ |
||
| 19 | public function isPending() |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritDoc |
||
| 32 | */ |
||
| 33 | public function isCancelled() |
||
| 34 | { |
||
| 35 | $model = $this->getModel(); |
||
| 36 | if ($model) { |
||
| 37 | if ($model->status === 'canceled') { |
||
| 38 | return true; |
||
| 39 | } |
||
| 40 | } |
||
| 41 | return parent::isCancelled(); |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @inheritDoc |
||
| 46 | */ |
||
| 47 | public function isSuccessful() |
||
| 56 | } |
||
| 57 | |||
| 58 | /** @noinspection PhpMissingParentCallCommonInspection |
||
| 59 | * @return bool |
||
| 60 | */ |
||
| 61 | protected function canProcessModel() |
||
| 64 | } |
||
| 65 | } |
||
| 66 |