mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 12:34:24 +00:00
a2381e44a7
Update Company Service Class Create Documents Service Class Create File Service Class Base64 File Convert Service Class File Upload Storage Service Class
139 lines
2.7 KiB
PHP
139 lines
2.7 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 $country_id
|
|
* @param int|null $company_id
|
|
* @param string|null $reference
|
|
* @param string|null $phone
|
|
* @param string|null $email
|
|
* @param string|null $wechat_id
|
|
*/
|
|
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;
|
|
}
|
|
} |