Total Complexity | 7 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 40% |
Changes | 3 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
13 | class CreditCards extends AbstractType |
||
14 | { |
||
15 | protected $aliases = ['credit-cards','credit_cards']; |
||
16 | |||
17 | use HasGatewaysTrait; |
||
18 | |||
19 | /** |
||
20 | * @return bool|string |
||
21 | */ |
||
22 | public function getEntryDescription() |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return bool |
||
38 | */ |
||
39 | public function checkConfirmRedirect() |
||
40 | { |
||
41 | if ($this->getGateway()) { |
||
42 | return $this->getGateway()->isActive(); |
||
43 | } |
||
44 | return false; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return mixed |
||
49 | */ |
||
50 | 18 | public function getGatewayOptions() |
|
58 | } |
||
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | 20 | public function getGatewayName() |
|
68 |