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