| Total Complexity | 1 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 5 | ||
| Bugs | 0 | Features | 4 |
| 1 | <?php |
||
| 20 | trait PurchaseControllerTrait |
||
| 21 | { |
||
| 22 | use PurchaseRedirectActionsTrait; |
||
| 23 | use PurchaseConfirmActionsTrait; |
||
| 24 | use PurchaseIpnActionsTrait; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return GatewaysManager |
||
| 28 | */ |
||
| 29 | protected function getGatewaysManager() |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param bool|array $key |
||
| 36 | * @return Record|IsPurchasableModelTrait |
||
| 37 | */ |
||
| 38 | abstract protected function getModelFromRequest($key = false); |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return RecordManager |
||
| 42 | */ |
||
| 43 | abstract protected function getModelManager(); |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return Request |
||
| 47 | */ |
||
| 48 | abstract protected function getRequest(); |
||
| 49 | |||
| 50 | abstract protected function dispatchAccessDeniedResponse(); |
||
| 51 | } |
||
| 52 |