mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 20:43:56 +00:00
82 lines
1.4 KiB
PHP
82 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Bookings\DataTransferObjects;
|
|
|
|
use App\Classes\General\Interfaces\DataTransferObject;
|
|
|
|
class BookingMergeObject implements DataTransferObject
|
|
{
|
|
|
|
/** @var int */
|
|
private $id;
|
|
|
|
/** @var array */
|
|
private $bookingIds;
|
|
|
|
/** @var float */
|
|
private $bookingAmount;
|
|
|
|
/** @var float */
|
|
private $transactionAmount;
|
|
|
|
/**
|
|
* BookingMergeObject constructor.
|
|
* @param int $id
|
|
* @param array $bookingIds
|
|
*/
|
|
public function __construct(int $id, array $bookingIds)
|
|
{
|
|
$this->id = $id;
|
|
$this->bookingIds = $bookingIds;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getId(): int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function getBookingIds(): array
|
|
{
|
|
return $this->bookingIds;
|
|
}
|
|
|
|
/**
|
|
* @return float
|
|
*/
|
|
public function getBookingAmount(): float
|
|
{
|
|
return $this->bookingAmount;
|
|
}
|
|
|
|
/**
|
|
* @param float $amount
|
|
* @return float
|
|
*/
|
|
public function setBookingAmount(float $amount)
|
|
{
|
|
$this->bookingAmount = $amount;
|
|
}
|
|
|
|
/**
|
|
* @return float
|
|
*/
|
|
public function getTransactionAmount(): float
|
|
{
|
|
return $this->transactionAmount;
|
|
}
|
|
|
|
/**
|
|
* @param float $amount
|
|
* @return float
|
|
*/
|
|
public function setTransactionAmount(float $amount)
|
|
{
|
|
$this->transactionAmount = $amount;
|
|
}
|
|
} |