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