| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class CompletePurchaseRequest extends AbstractCompletePurchaseRequest |
||
| 14 | { |
||
| 15 | use Traits\CompletePurchaseRequestTrait; |
||
|
|
|||
| 16 | |||
| 17 | /** |
||
| 18 | * @inheritdoc |
||
| 19 | */ |
||
| 20 | public function getData() |
||
| 21 | { |
||
| 22 | $return = parent::getData(); |
||
| 23 | // Add model only if has data |
||
| 24 | if (count($return) && $this->validateModel()) { |
||
| 25 | $return['model'] = $this->getModel(); |
||
| 26 | } |
||
| 27 | |||
| 28 | return $return; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritDoc |
||
| 33 | */ |
||
| 34 | public function getModelIdFromRequest() |
||
| 39 | } |
||
| 40 | } |
||
| 41 |