mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/tickme.git
synced 2026-08-19 12:33:57 +00:00
96 lines
1.7 KiB
PHP
96 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Tasks\DataTransferObjects;
|
|
|
|
use App\Classes\Interfaces\DataTransferObject;
|
|
|
|
class TaskObject implements DataTransferObject
|
|
{
|
|
|
|
/** @var int */
|
|
private $typeId;
|
|
|
|
/** @var string */
|
|
private $title;
|
|
|
|
/** @var string */
|
|
private $description;
|
|
|
|
/** @var int */
|
|
private $status;
|
|
|
|
/** @var bool */
|
|
private $isActive;
|
|
|
|
/** @var int|null */
|
|
private $milestoneId;
|
|
|
|
/**
|
|
* TaskObject constructor.
|
|
* @param int $typeId
|
|
* @param string $title
|
|
* @param string $description
|
|
* @param int $status
|
|
* @param bool $isActive
|
|
* @param int|null $milestoneId
|
|
*/
|
|
public function __construct(int $typeId, string $title, string $description, int $status, bool $isActive, ?int $milestoneId)
|
|
{
|
|
$this->typeId = $typeId;
|
|
$this->title = $title;
|
|
$this->description = $description;
|
|
$this->status = $status;
|
|
$this->isActive = $isActive;
|
|
$this->milestoneId = $milestoneId;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getTypeId(): int
|
|
{
|
|
return $this->typeId;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getTitle(): string
|
|
{
|
|
return $this->title;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getDescription(): string
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getStatus(): int
|
|
{
|
|
return $this->status;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isActive(): bool
|
|
{
|
|
return $this->isActive;
|
|
}
|
|
|
|
/**
|
|
* @return int|null
|
|
*/
|
|
public function getMilestoneId(): ?int
|
|
{
|
|
return $this->milestoneId;
|
|
}
|
|
|
|
|
|
} |