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