mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/tickme.git
synced 2026-08-21 05:24:03 +00:00
changes related to activating the create task module
This commit is contained in:
@@ -7,9 +7,6 @@ use App\Classes\Interfaces\DataTransferObject;
|
||||
class TaskObject implements DataTransferObject
|
||||
{
|
||||
|
||||
/** @var int */
|
||||
private $milestoneId;
|
||||
|
||||
/** @var int */
|
||||
private $typeId;
|
||||
|
||||
@@ -25,31 +22,26 @@ class TaskObject implements DataTransferObject
|
||||
/** @var bool */
|
||||
private $isActive;
|
||||
|
||||
/** @var int|null */
|
||||
private $milestoneId;
|
||||
|
||||
/**
|
||||
* TaskObject constructor.
|
||||
* @param int $milestoneId
|
||||
* @param int $typeId
|
||||
* @param string $title
|
||||
* @param string $description
|
||||
* @param int $status
|
||||
* @param bool $isActive
|
||||
* @param int $typeId
|
||||
* @param string $title
|
||||
* @param string $description
|
||||
* @param int $status
|
||||
* @param bool $isActive
|
||||
* @param int|null $milestoneId
|
||||
*/
|
||||
public function __construct(int $milestoneId, int $typeId, string $title, string $description, int $status, bool $isActive)
|
||||
public function __construct(int $typeId, string $title, string $description, int $status, bool $isActive, ?int $milestoneId)
|
||||
{
|
||||
$this->milestoneId = $milestoneId;
|
||||
$this->typeId = $typeId;
|
||||
$this->title = $title;
|
||||
$this->description = $description;
|
||||
$this->status = $status;
|
||||
$this->isActive = $isActive;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getMilestoneId(): int
|
||||
{
|
||||
return $this->milestoneId;
|
||||
$this->milestoneId = $milestoneId;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -87,11 +79,18 @@ class TaskObject implements DataTransferObject
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function IsActive(): bool
|
||||
public function isActive(): bool
|
||||
{
|
||||
return $this->isActive;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getMilestoneId(): ?int
|
||||
{
|
||||
return $this->milestoneId;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user