1 | <?php |
||
34 | class InstallmentPlan extends \Magento\Framework\View\Element\Template |
||
35 | { |
||
36 | /** |
||
37 | * Constructor |
||
38 | * |
||
39 | * @param Context $context |
||
40 | * @param array $data |
||
41 | */ |
||
42 | public function __construct(Context $context, array $data = []) { |
||
46 | |||
47 | /** |
||
48 | * Format price |
||
49 | * |
||
50 | * @param double $dPrice |
||
51 | * @return string |
||
52 | */ |
||
53 | public function formatPrice($dPrice) |
||
57 | |||
58 | /** |
||
59 | * Generate installment selection text |
||
60 | * |
||
61 | * @param array $aInstallment |
||
62 | * @return string |
||
63 | */ |
||
64 | public function getSelectLinkText($aInstallment) |
||
73 | |||
74 | /** |
||
75 | * Generate payment info text |
||
76 | * |
||
77 | * @param string $sKey |
||
78 | * @param array $aInstallment |
||
79 | * @param array $aPayment |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getPaymentInfoText($sKey, $aInstallment, $aPayment) |
||
92 | |||
93 | /** |
||
94 | * Return download link for installment draft contract |
||
95 | * |
||
96 | * @param int $iInstallments |
||
97 | * @return string |
||
98 | */ |
||
99 | public function getDraftDownloadLink($iInstallments) |
||
103 | } |
||
104 |