mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
c3f153fe4b
Update Booking Logic Class Delete Booking Logic Class
112 lines
2.5 KiB
PHP
112 lines
2.5 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Bookings\DataTransferObjects;
|
|
|
|
use App\Classes\Interfaces\DataTransferObject;
|
|
|
|
class BookingObject implements DataTransferObject
|
|
{
|
|
private $company_id;
|
|
private $transferable_bank_id;
|
|
private $marking;
|
|
private $reference;
|
|
private $fix_amount;
|
|
private $fix_currency_id;
|
|
private $convertible_currency_id;
|
|
private $conversion_currency_id;
|
|
/**
|
|
* BookingObject constructor.
|
|
* @param int|null $company_id
|
|
* @param int|null $transferable_bank_id
|
|
* @param string|null $marking
|
|
* @param string|null $reference
|
|
* @param float|null $fix_amount
|
|
* @param int|null $fix_currency_id
|
|
* @param int|null $convertible_currency_id
|
|
* @param int|null $conversion_currency_id
|
|
*/
|
|
public function __construct(
|
|
?int $company_id,
|
|
?int $transferable_bank_id,
|
|
?string $marking,
|
|
?string $reference,
|
|
?float $fix_amount,
|
|
?int $fix_currency_id,
|
|
?int $convertible_currency_id,
|
|
?int $conversion_currency_id
|
|
)
|
|
{
|
|
$this->company_id = $company_id;
|
|
$this->transferable_bank_id = $transferable_bank_id;
|
|
$this->marking = $marking;
|
|
$this->reference = $reference;
|
|
$this->fix_amount = $fix_amount;
|
|
$this->fix_currency_id = $fix_currency_id;
|
|
$this->convertible_currency_id = $convertible_currency_id;
|
|
$this->conversion_currency_id = $conversion_currency_id;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getCompanyId(): ?int
|
|
{
|
|
return $this->company_id;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getTransferableBankId(): ?int
|
|
{
|
|
return $this->transferable_bank_id;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getMarking(): ?string
|
|
{
|
|
return $this->marking;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getReference(): ?string
|
|
{
|
|
return $this->reference;
|
|
}
|
|
|
|
/**
|
|
* @return float
|
|
*/
|
|
public function getFixAmount(): ?float
|
|
{
|
|
return $this->fix_amount;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getFixCurrencyId(): ?int
|
|
{
|
|
return $this->fix_currency_id;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getConvertibleCurrencyId(): ?int
|
|
{
|
|
return $this->convertible_currency_id;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getConversionCurrencyId(): ?int
|
|
{
|
|
return $this->conversion_currency_id;
|
|
}
|
|
} |