mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-23 06:24:03 +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,59 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Documents\DataTransferObjects;
|
||||
|
||||
use App\Classes\Interfaces\DataTransferObject;
|
||||
|
||||
class FileObject implements DataTransferObject
|
||||
{
|
||||
/** @var int|null */
|
||||
private $document_id;
|
||||
|
||||
/** @var text|null */
|
||||
private $file;
|
||||
|
||||
/** @var string|null */
|
||||
private $file_type;
|
||||
|
||||
/**
|
||||
* CompanyObject constructor.
|
||||
* @param int|null $document_id
|
||||
* @param text|null $file
|
||||
* @param string|null $file_type
|
||||
*/
|
||||
public function __construct(
|
||||
?int $document_id,
|
||||
?string $file,
|
||||
?string $file_type
|
||||
)
|
||||
{
|
||||
$this->document_id = $document_id;
|
||||
$this->file = $file;
|
||||
$this->file_type = $file_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getDocumentId(): ?int
|
||||
{
|
||||
return $this->document_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFile(): ?string
|
||||
{
|
||||
return $this->file;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFileType(): ?string
|
||||
{
|
||||
return $this->file_type;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user