Files
shipping-portal/app/Classes/Modules/Remarks/DataTransferObjects/RemarkObject.php
T
2024-06-12 12:02:31 +08:00

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;
}
}