Skip to content

Commit

Permalink
accountTypeCode function private to public
Browse files Browse the repository at this point in the history
  • Loading branch information
mah-shamim committed May 17, 2024
1 parent ae12fb6 commit 3543300
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Vendors/IslamiBankApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand All @@ -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;
}
}

0 comments on commit 3543300

Please sign in to comment.