| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | class CompletePurchaseRequest extends AbstractCompletePurchaseRequest |
||
| 15 | { |
||
| 16 | use HasModelRequest; |
||
|
|
|||
| 17 | use CompletePurchaseTrait; |
||
| 18 | use HasGatewayRequestTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @inheritdoc |
||
| 22 | */ |
||
| 23 | public function getData() |
||
| 24 | { |
||
| 25 | $return = parent::getData(); |
||
| 26 | // Add model only if has data |
||
| 27 | if (count($return)) { |
||
| 28 | $return['model'] = $this->getModel(); |
||
| 29 | } |
||
| 30 | |||
| 31 | return $return; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getModelIdFromRequest() |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @inheritdoc |
||
| 46 | */ |
||
| 47 | protected function parseNotification() |
||
| 57 |