mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
aa6f59b86d
-Update Company Bank Logic Class -Delete Company Bank Logic Class
102 lines
2.0 KiB
PHP
102 lines
2.0 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\CompanyBanks\DataTransferObjects;
|
|
|
|
use App\Classes\Interfaces\DataTransferObject;
|
|
|
|
class CompanyBankObject implements DataTransferObject
|
|
{
|
|
/** @var string|null */
|
|
private $country_id;
|
|
private $company_id;
|
|
private $bank_name;
|
|
private $holder_name;
|
|
private $account_no;
|
|
private $type;
|
|
private $default;
|
|
|
|
/**
|
|
* CompanyBankObject constructor.
|
|
* @param int|null $country_id
|
|
* @param int|null $company_id
|
|
* @param string|null $bank_name
|
|
* @param string|null $holder_name
|
|
* @param string|null $account_no
|
|
* @param int|null $type
|
|
* @param int|null $default
|
|
*/
|
|
public function __construct(
|
|
?int $country_id,
|
|
?int $company_id,
|
|
?string $bank_name,
|
|
?string $holder_name,
|
|
?string $account_no,
|
|
?int $type,
|
|
?int $default
|
|
)
|
|
{
|
|
$this->country_id = $country_id;
|
|
$this->company_id = $company_id;
|
|
$this->bank_name = $bank_name;
|
|
$this->holder_name = $holder_name;
|
|
$this->account_no = $account_no;
|
|
$this->type = $type;
|
|
$this->default = $default;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getCountryId(): ?int
|
|
{
|
|
return $this->country_id;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getCompanyId(): ?int
|
|
{
|
|
return $this->company_id;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getBankName(): ?string
|
|
{
|
|
return $this->bank_name;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getHolderName(): ?string
|
|
{
|
|
return $this->holder_name;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getAccountNo(): ?string
|
|
{
|
|
return $this->account_no;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getType(): ?int
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getDefault(): ?int
|
|
{
|
|
return $this->default;
|
|
}
|
|
} |