mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
51 lines
889 B
PHP
51 lines
889 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Remarks\DataTransferObjects;
|
|
|
|
use App\Classes\General\Interfaces\DataTransferObject;
|
|
|
|
class RemarkObject implements DataTransferObject
|
|
{
|
|
|
|
/** @var int */
|
|
private $commenterID;
|
|
|
|
/** @var string*/
|
|
private $content;
|
|
|
|
/** @var int|null */
|
|
private $type;
|
|
|
|
public function __construct(string $content, int $commenterID, int $type = null)
|
|
{
|
|
$this->commenterID = $commenterID;
|
|
$this->content = $content;
|
|
$this->type = $type;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getCommenterId(): string
|
|
{
|
|
return $this->commenterID;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getContent(): ?string
|
|
{
|
|
return $this->content;
|
|
}
|
|
|
|
/**
|
|
* @return int|null
|
|
*/
|
|
public function getType(): ?int
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
}
|