| Total Complexity | 5 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class Form extends AbstractForm |
||
| 13 | { |
||
| 14 | public function initElements() |
||
| 15 | { |
||
| 16 | parent::initElements(); |
||
| 17 | $this->initElementSandbox(); |
||
| 18 | |||
| 19 | $this->addInput('public_key', 'Public key', false); |
||
| 20 | $this->addInput('private_key', 'Private key', false); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getDataFromModel() |
||
| 24 | { |
||
| 25 | $type = $this->getForm()->getModel()->getType(); |
||
| 26 | if ($type instanceof CreditCards) { |
||
| 27 | $type->getGateway(); |
||
| 28 | } |
||
| 29 | parent::getDataFromModel(); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | public function processValidation() |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return bool |
||
| 44 | */ |
||
| 45 | public function process() |
||
| 56 | } |
||
| 57 | } |
||
| 58 |