mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
142 lines
2.9 KiB
PHP
142 lines
2.9 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Documents\DataTransferObjects;
|
|
|
|
use App\Classes\Interfaces\DataTransferObject;
|
|
|
|
class DocumentObject implements DataTransferObject
|
|
{
|
|
/** @var int|null */
|
|
private $owner_id;
|
|
|
|
/** @var int|null */
|
|
private $owner_type;
|
|
|
|
/** @var string|null */
|
|
private $document_type;
|
|
|
|
/** @var string|null */
|
|
private $reference;
|
|
|
|
/** @var int|null */
|
|
private $status;
|
|
|
|
/** @var int|null */
|
|
private $approved_by;
|
|
|
|
/** @var timestamp|null */
|
|
private $issued_date;
|
|
|
|
/** @var timestamp|null */
|
|
private $expired_date;
|
|
|
|
/** @var timestamp|null */
|
|
private $approved_date;
|
|
|
|
/**
|
|
* CompanyObject constructor.
|
|
* @param int|null $owner_id
|
|
* @param int|null $owner_type
|
|
* @param null|string $document_type
|
|
* @param string|null $reference
|
|
* @param int|null $status
|
|
* @param int|null $approved_by
|
|
* @param timestamp|null $issued_date
|
|
* @param timestamp|null $expired_date
|
|
* @param timestamp|null $approved_date
|
|
*/
|
|
public function __construct(
|
|
?int $owner_id,
|
|
?int $owner_type,
|
|
?string $document_type,
|
|
?string $reference,
|
|
?int $status,
|
|
?int $approved_by,
|
|
?timestamp $issued_date,
|
|
?timestamp $expired_date,
|
|
?timestamp $approved_date
|
|
)
|
|
{
|
|
$this->owner_id = $owner_id;
|
|
$this->owner_type = $owner_type;
|
|
$this->document_type = $document_type;
|
|
$this->reference = $reference;
|
|
$this->status = $status;
|
|
$this->approved_by = $approved_by;
|
|
$this->issued_date = $issued_date;
|
|
$this->expired_date = $expired_date;
|
|
$this->approved_date = $approved_date;
|
|
}
|
|
|
|
/**
|
|
* @return int|null
|
|
*/
|
|
public function getOwnerId(): ?int
|
|
{
|
|
return $this->owner_id;
|
|
}
|
|
|
|
/**
|
|
* @return int|null
|
|
*/
|
|
public function getOwnerType(): ?int
|
|
{
|
|
return $this->owner_type;
|
|
}
|
|
|
|
/**
|
|
* @return string|null
|
|
*/
|
|
public function getDocumentType(): ?string
|
|
{
|
|
return $this->document_type;
|
|
}
|
|
|
|
/**
|
|
* @return string|null
|
|
*/
|
|
public function getReference(): ?string
|
|
{
|
|
return $this->reference;
|
|
}
|
|
|
|
/**
|
|
* @return int|null
|
|
*/
|
|
public function getStatus(): ?int
|
|
{
|
|
return $this->status;
|
|
}
|
|
|
|
/**
|
|
* @return int|null
|
|
*/
|
|
public function getApprovedBy(): ?int
|
|
{
|
|
return $this->approved_by;
|
|
}
|
|
|
|
/**
|
|
* @return timestamp|null
|
|
*/
|
|
public function getIssuedDate(): ?timestamp
|
|
{
|
|
return $this->issued_date;
|
|
}
|
|
|
|
/**
|
|
* @return timestamp|null
|
|
*/
|
|
public function getExpiredDate(): ?timestamp
|
|
{
|
|
return $this->expired_date;
|
|
}
|
|
|
|
/**
|
|
* @return timestamp|null
|
|
*/
|
|
public function getApprovedDate(): ?timestamp
|
|
{
|
|
return $this->approved_date;
|
|
}
|
|
} |