| Total Complexity | 4 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class Getpay extends \Magento\Payment\Block\Form |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Getpay template. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $_template = 'Getnet_PaymentMagento::form/getpay.phtml'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var ConfigGetpay |
||
| 28 | */ |
||
| 29 | protected $configGetpay; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param Context $context |
||
| 33 | * @param ConfigGetpay $configGetpay |
||
| 34 | */ |
||
| 35 | public function __construct( |
||
| 36 | Context $context, |
||
| 37 | ConfigGetpay $configGetpay |
||
| 38 | ) { |
||
| 39 | parent::__construct($context); |
||
| 40 | $this->configGetpay = $configGetpay; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Title - Getpay. |
||
| 45 | * |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getTitle() |
||
| 49 | { |
||
| 50 | return $this->configGetpay->getTitle(); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Instruction - Getpay. |
||
| 55 | * |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getInstruction() |
||
| 59 | { |
||
| 60 | return $this->configGetpay->getInstructionCheckout(); |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Expiration - Getpay. |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function getExpiration() |
||
| 71 | } |
||
| 72 | } |
||
| 73 |