Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | trait CompletePurchaseTrait |
||
14 | { |
||
15 | use HasGatewayRequestTrait; |
||
16 | |||
17 | /** |
||
18 | * @inheritdoc |
||
19 | */ |
||
20 | public function getData() |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @inheritdoc |
||
33 | */ |
||
34 | protected function parseNotification() |
||
35 | { |
||
36 | if ($this->validateModel()) { |
||
37 | $model = $this->getModel(); |
||
38 | $this->updateParametersFromPurchase($model); |
||
39 | } |
||
40 | |||
41 | return parent::parseNotification(); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @param Gateway $model |
||
46 | */ |
||
47 | protected function updateParametersFromGateway($gateway) |
||
51 | } |
||
52 | } |
||
53 |