fix(Webstatement): inisialisasi default untuk properti $period di semua Job
- Mengatur nilai default properti `$period` menjadi string kosong (`''`) di semua file Job terkait dalam modul `Webstatement`. - File-file yang terpengaruh: 1. `ProcessAccountDataJob.php` 2. `ProcessArrangementDataJob.php` 3. `ProcessAtmTransactionJob.php` 4. `ProcessBillDetailDataJob.php` 5. `ProcessCategoryDataJob.php` 6. `ProcessCompanyDataJob.php` 7. `ProcessCustomerDataJob.php` 8. `ProcessDataCaptureDataJob.php` 9. `ProcessFtTxnTypeConditionJob.php` 10. `ProcessFundsTransferDataJob.php` 11. `ProcessStmtEntryDataJob.php` 12. `ProcessStmtNarrFormatDataJob.php` 13. `ProcessStmtNarrParamDataJob.php` 14. `ProcessTellerDataJob.php` 15. `ProcessTransactionDataJob.php` - Perubahan ini bertujuan untuk meningkatkan stabilitas dengan memastikan nilai awal dari properti telah terdefinisi untuk menghindari potensi `undefined property error`. - Tidak ada perubahan logika lain di luar inisialisasi default nilai properti. Signed-off-by: Daeng Deni Mardaeni <ddeni05@gmail.com>
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
private const MAX_EXECUTION_TIME = 86400; // 24 hours in seconds
|
||||
private const FILENAME = 'ST.ACCOUNT.csv';
|
||||
private const DISK_NAME = 'sftpStatement';
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
private const FILENAME = 'ST.AA.ARRANGEMENT.csv';
|
||||
private const DISK_NAME = 'sftpStatement';
|
||||
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
'proc_code' => 'proc_code'
|
||||
];
|
||||
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
private const FILENAME = 'ST.AA.BILL.DETAILS.csv';
|
||||
private const DISK_NAME = 'sftpStatement';
|
||||
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
'category_code' => 'category_code'
|
||||
];
|
||||
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -37,8 +37,7 @@
|
||||
];
|
||||
private const BOOLEAN_FIELDS = ['l_vendor_atm', 'l_vendor_cpc'];
|
||||
|
||||
private string $period;
|
||||
private string $filename;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
private const FILENAME = 'ST.CUSTOMER.csv';
|
||||
private const DISK_NAME = 'sftpStatement';
|
||||
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
];
|
||||
private const DATE_FIELDS = ['value_date', 'exposure_date', 'accounting_date'];
|
||||
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
private const FILENAME = 'ST.FT.TXN.TYPE.CONDITION.csv';
|
||||
private const DISK_NAME = 'sftpStatement';
|
||||
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
private const FILENAME = 'ST.FUNDS.TRANSFER.csv';
|
||||
private const DISK_NAME = 'sftpStatement';
|
||||
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
private const FILENAME = 'ST.STMT.ENTRY.csv';
|
||||
private const DISK_NAME = 'sftpStatement';
|
||||
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
private const FILENAME = 'ST.STMT.NARR.FORMAT.csv';
|
||||
private const DISK_NAME = 'sftpStatement';
|
||||
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
private const FILENAME = 'ST.STMT.NARR.PARAM.csv';
|
||||
private const DISK_NAME = 'sftpStatement';
|
||||
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
'last_version' => 'last_version'
|
||||
];
|
||||
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
private const FILENAME = 'ST.TRANSACTION.csv';
|
||||
private const DISK_NAME = 'sftpStatement';
|
||||
|
||||
private string $period;
|
||||
private string $period = '';
|
||||
private int $processedCount = 0;
|
||||
private int $errorCount = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user