mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
51 lines
976 B
PHP
51 lines
976 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\PerfexCRM\DataTransferObjects;
|
|
|
|
use Illuminate\Http\Request;
|
|
use App\Classes\General\Interfaces\DataTransferObject;
|
|
use App\Models\Transaction;
|
|
|
|
class UpdatePerfexCRMInvoiceObject implements DataTransferObject
|
|
{
|
|
/** @var string */
|
|
private $email;
|
|
|
|
/** @var Transaction */
|
|
private $transaction;
|
|
|
|
/** @var bool */
|
|
private $isPaid;
|
|
|
|
public function __construct(string $email, Transaction $transaction, bool $isPaid)
|
|
{
|
|
$this->email = $email;
|
|
$this->transaction = $transaction;
|
|
$this->isPaid = $isPaid;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getEmail(): string
|
|
{
|
|
return $this->email;
|
|
}
|
|
|
|
/**
|
|
* @return Transaction
|
|
*/
|
|
public function getTransaction(): Transaction
|
|
{
|
|
return $this->transaction;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function getIsPaid(): bool
|
|
{
|
|
return $this->isPaid;
|
|
}
|
|
}
|