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:
CheeSiong
2020-11-05 14:51:56 +08:00
parent 2bf5de8f3e
commit a2381e44a7
33 changed files with 1025 additions and 40 deletions
@@ -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;
}
}