| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class BankAccount extends \App\Integrations\Comarch\Map |
||
| 22 | { |
||
| 23 | /** {@inheritdoc} */ |
||
| 24 | protected $moduleName = 'BankAccounts'; |
||
| 25 | /** {@inheritdoc} */ |
||
| 26 | protected $fieldMap = [ |
||
| 27 | 'name' => 'rkB_Id', |
||
| 28 | 'bank_name' => 'bnk_Nazwa', |
||
| 29 | 'account_number' => 'rkB_NrRachunku', |
||
| 30 | 'currency_id' => ['name' => 'rkB_Waluta', 'fn' => 'convertCurrency'], |
||
| 31 | ]; |
||
| 32 | /** {@inheritdoc} */ |
||
| 33 | protected $defaultDataYf = [ |
||
| 34 | 'fieldMap' => [ |
||
| 35 | 'bankaccount_status' => 'PLL_ACTIVE' |
||
| 36 | ] |
||
| 37 | ]; |
||
| 38 | |||
| 39 | /** {@inheritdoc} */ |
||
| 40 | protected function convertCurrency($value, array $field, bool $fromApi) |
||
| 57 |