| Total Complexity | 5 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | trait CompletePurchaseTrait |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @inheritdoc |
||
| 17 | */ |
||
| 18 | public function getData() |
||
| 19 | { |
||
| 20 | $return = parent::getData(); |
||
| 21 | // Add model only if has data |
||
| 22 | if (count($return)) { |
||
| 23 | $return['model'] = $this->getModel(); |
||
|
|
|||
| 24 | } |
||
| 25 | |||
| 26 | return $return; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return bool|mixed |
||
| 31 | * @throws \Exception |
||
| 32 | */ |
||
| 33 | protected function parseNotification() |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param IsPurchasableModelTrait $model |
||
| 45 | * |
||
| 46 | * @throws \Exception |
||
| 47 | */ |
||
| 48 | protected function updateParametersFromModel($model) |
||
| 54 | } |
||
| 55 | } |
||
| 56 |