From 3543300495bdc0dc6e4ff7385227042072b4ce8c Mon Sep 17 00:00:00 2001 From: MD ARIFUL HAQUE Date: Sat, 18 May 2024 02:00:03 +0600 Subject: [PATCH] accountTypeCode function private to public --- src/Vendors/IslamiBankApi.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Vendors/IslamiBankApi.php b/src/Vendors/IslamiBankApi.php index 88553e3..9a76501 100644 --- a/src/Vendors/IslamiBankApi.php +++ b/src/Vendors/IslamiBankApi.php @@ -896,7 +896,7 @@ private function __beneficiaryIdentityTypeCode(int $code): string * * @return array|string|string[] */ - private function __accountTypeCode(string $code): array|string + public function accountTypeCode(string $code): array|string { $return = [ '01' => 'AWCA (Current)', @@ -914,6 +914,11 @@ private function __accountTypeCode(string $code): array|string '71' => 'Remittance card', ]; - return $return[$code]; + if($code == ''){ + $returnValue = $return; + }else{ + $returnValue = $return[$code]; + } + return $returnValue; } }