mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
26 lines
591 B
PHP
26 lines
591 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Rules\DataTransferObjects;
|
|
|
|
use App\Classes\General\Interfaces\DataTransferObject;
|
|
|
|
class EInvoiceRequestDTO implements DataTransferObject
|
|
{
|
|
public bool $eInvoiceRequest;
|
|
public int $companyId;
|
|
|
|
public function __construct(array $data)
|
|
{
|
|
$this->eInvoiceRequest = $data['e_invoice_request'];
|
|
$this->companyId = $data['company_id'];
|
|
}
|
|
|
|
public function toArray(): array
|
|
{
|
|
return [
|
|
'e_invoice_request' => $this->eInvoiceRequest,
|
|
'company_id' => $this->companyId,
|
|
];
|
|
}
|
|
}
|