| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class InvoiceSecuredB2CSubForm extends AbstractSubFormType implements SubFormInterface, SubFormProviderNameInterface |
||
| 16 | { |
||
| 17 | protected const PAYMENT_METHOD_TEMPLATE_PATH = 'invoice-secured-b2c'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public function getProviderName() |
||
| 23 | { |
||
| 24 | return HeidelpayConfig::PROVIDER_NAME; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public function getName(): string |
||
| 31 | { |
||
| 32 | return HeidelpayConfig::PAYMENT_METHOD_INVOICE_SECURED_B2C; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Specifies the property name of the payment transfer object to access the default form data. |
||
| 37 | * Form data will be obtained from QuoteTransfer->getPayment()->getHeidelpaySofort() |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function getPropertyPath(): string |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Path to the form template |
||
| 48 | * |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public function getTemplatePath(): string |
||
| 54 | } |
||
| 55 | } |
||
| 56 |