mirror of
https://github.com/Karaka-Management/oms-Kanban.git
synced 2026-01-22 00:28:41 +00:00
103 lines
1.7 KiB
PHP
103 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://orange-management.com
|
|
*/
|
|
declare(strict_types=1);
|
|
namespace Modules\Kanban\Models;
|
|
|
|
|
|
/**
|
|
* Task class.
|
|
*
|
|
* @category Kanban
|
|
* @package Modules
|
|
* @license OMS License 1.0
|
|
* @link http://orange-management.com
|
|
* @since 1.0.0
|
|
*/
|
|
class KanbanColumn implements \JsonSerializable
|
|
{
|
|
private $id = 0;
|
|
|
|
private $name = '';
|
|
|
|
private $order = 0;
|
|
|
|
private $board = 0;
|
|
|
|
private $cards = [];
|
|
|
|
public function __construct()
|
|
{
|
|
}
|
|
|
|
public function getId() : int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getOrder() : int
|
|
{
|
|
return $this->order;
|
|
}
|
|
|
|
public function setOrder(int $order) /* : void */
|
|
{
|
|
$this->order = $order;
|
|
}
|
|
|
|
public function setBoard(int $board) /* : void */
|
|
{
|
|
$this->board = $board;
|
|
}
|
|
|
|
public function getBoard() : int
|
|
{
|
|
return $this->board;
|
|
}
|
|
|
|
public function getName() : string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setName(string $name) /* : void */
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getCards() : array
|
|
{
|
|
return $this->cards;
|
|
}
|
|
|
|
public function addCard(KanbanCard $card) /* : void */
|
|
{
|
|
$this->cards[] = $card;
|
|
}
|
|
|
|
public function removeCard(int $id) : bool
|
|
{
|
|
if(isset($this->cards[$id])) {
|
|
unset($this->cards[$id]);
|
|
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
public function jsonSerialize() : array
|
|
{
|
|
return [];
|
|
}
|
|
} |