mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
59 lines
1.1 KiB
PHP
59 lines
1.1 KiB
PHP
<?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 null|string $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;
|
|
}
|
|
|
|
} |