mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
User Registration Step 2 Logic Class
Update Company Service Class Create Documents Service Class Create File Service Class Base64 File Convert Service Class File Upload Storage Service Class
This commit is contained in:
@@ -0,0 +1,139 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user