* kanban column added for team column config data
* team contains jira filter id and kanban column config
This commit is contained in:
@@ -47,6 +47,36 @@ class Team implements JsonSerializable
|
||||
*/
|
||||
private $slides;
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="filter_id", type="integer", nullable=true)
|
||||
* @var int
|
||||
*/
|
||||
private $filterId;
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="backlog_column", type="json", nullable=true)
|
||||
* @var KanbanColumn
|
||||
*/
|
||||
private $backlogColumn;
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="inprogress_column", type="json", nullable=true)
|
||||
* @var KanbanColumn
|
||||
*/
|
||||
private $inprogressColumn;
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="verification_column", type="json", nullable=true)
|
||||
* @var KanbanColumn
|
||||
*/
|
||||
private $verificationColumn;
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="done_column", type="json", nullable=true)
|
||||
* @var KanbanColumn
|
||||
*/
|
||||
private $doneColumn;
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="is_active", type="boolean")
|
||||
* @var bool
|
||||
@@ -69,8 +99,13 @@ class Team implements JsonSerializable
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->slides = new ArrayCollection;
|
||||
$this->members = new \ArrayObject;
|
||||
$this->slides = new ArrayCollection;
|
||||
|
||||
$this->backlogColumn = new KanbanColumn();
|
||||
$this->inprogressColumn = new KanbanColumn();
|
||||
$this->verificationColumn = new KanbanColumn();
|
||||
$this->doneColumn = new KanbanColumn();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -159,6 +194,96 @@ class Team implements JsonSerializable
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getFilterId(): ?int
|
||||
{
|
||||
return $this->filterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $filterId
|
||||
* @return Team
|
||||
*/
|
||||
public function setFilterId(?int $filterId): Team
|
||||
{
|
||||
$this->filterId = $filterId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array|KanbanColumn
|
||||
*/
|
||||
public function getBacklogColumn()
|
||||
{
|
||||
return $this->backlogColumn;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $backlogColumn
|
||||
* @return Team
|
||||
*/
|
||||
public function setBacklogColumn(?array $backlogColumn): Team
|
||||
{
|
||||
$this->backlogColumn = $backlogColumn;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array|KanbanColumn
|
||||
*/
|
||||
public function getInprogressColumn()
|
||||
{
|
||||
return $this->inprogressColumn;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $inprogressColumn
|
||||
* @return Team
|
||||
*/
|
||||
public function setInprogressColumn(array $inprogressColumn): Team
|
||||
{
|
||||
$this->inprogressColumn = $inprogressColumn;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array|KanbanColumn
|
||||
*/
|
||||
public function getVerificationColumn()
|
||||
{
|
||||
return $this->verificationColumn;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $verificationColumn
|
||||
* @return Team
|
||||
*/
|
||||
public function setVerificationColumn(?array $verificationColumn): Team
|
||||
{
|
||||
$this->verificationColumn = $verificationColumn;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array|KanbanColumn
|
||||
*/
|
||||
public function getDoneColumn()
|
||||
{
|
||||
return $this->doneColumn;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $doneColumn
|
||||
* @return Team
|
||||
*/
|
||||
public function setDoneColumn(?array $doneColumn): Team
|
||||
{
|
||||
$this->doneColumn = $doneColumn;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
@@ -222,6 +347,11 @@ class Team implements JsonSerializable
|
||||
'id' => $this->getId(),
|
||||
'name' => $this->getName(),
|
||||
'members' => $this->getMembers(),
|
||||
'filterId' => $this->getFilterId(),
|
||||
'backlogColumn' => $this->getBacklogColumn() ?? new KanbanColumn(),
|
||||
'inprogressColumn' => $this->getInprogressColumn() ?? new KanbanColumn(),
|
||||
'verificationColumn' => $this->getVerificationColumn() ?? new KanbanColumn(),
|
||||
'doneColumn' => $this->getDoneColumn() ?? new KanbanColumn(),
|
||||
'isActive' => $this->isActive(),
|
||||
'createdAt' => $this->getCreatedAt()
|
||||
? $this->getCreatedAt()->format("Y-m-d H:i:s")
|
||||
|
||||
Reference in New Issue
Block a user