diff --git a/Models/KanbanBoard.php b/Models/KanbanBoard.php index 51bc310..338d4ea 100644 --- a/Models/KanbanBoard.php +++ b/Models/KanbanBoard.php @@ -24,15 +24,31 @@ namespace Modules\Kanban\Models; */ class KanbanBoard implements \JsonSerializable { - private $id = 0; + /** + * ID. + * + * @var int + * @since 1.0.0 + */ + protected int $id = 0; + /** + * Name. + * + * @var string + * @since 1.0.0 + */ + private string $name = ''; - private $name = ''; - - private $status = BoardStatus::ACTIVE; + private int $status = BoardStatus::ACTIVE; private $order = 0; - - private $description = ''; + /** + * Description. + * + * @var string + * @since 1.0.0 + */ + private string $description = ''; private $createdBy = 0; @@ -40,21 +56,49 @@ class KanbanBoard implements \JsonSerializable private $columns = []; + /** + * Constructor. + * + * @since 1.0.0 + */ public function __construct() { $this->createdAt = new \DateTime('now'); } + /** + * Get id. + * + * @return int Model id + * + * @since 1.0.0 + */ public function getId() : int { return $this->id; } + /** + * Get name + * + * @return string + * + * @since 1.0.0 + */ public function getName() : string { return $this->name; } + /** + * Set name + * + * @param string $name Name + * + * @return void + * + * @since 1.0.0 + */ public function setName(string $name) : void { $this->name = $name; @@ -80,26 +124,65 @@ class KanbanBoard implements \JsonSerializable $this->order = $order; } + /** + * Get description + * + * @return string + * + * @since 1.0.0 + */ public function getDescription() : string { return $this->description; } + /** + * Set description + * + * @param string $description Description + * + * @return void + * + * @since 1.0.0 + */ public function setDescription(string $description) : void { $this->description = $description; } + /** + * Get created by + * + * @return int|\phpOMS\Account\Account + * + * @since 1.0.0 + */ public function getCreatedBy() { return $this->createdBy; } - public function setCreatedBy(int $id) : void + /** + * Set created by + * + * @param mixed $id Created by + * + * @return void + * + * @since 1.0.0 + */ + public function setCreatedBy($id) : void { $this->createdBy = $id; } + /** + * Get created at date time + * + * @return \DateTime + * + * @since 1.0.0 + */ public function getCreatedAt() : \DateTime { return $this->createdAt; diff --git a/Models/KanbanCard.php b/Models/KanbanCard.php index 80430de..acbb3cb 100644 --- a/Models/KanbanCard.php +++ b/Models/KanbanCard.php @@ -24,15 +24,31 @@ namespace Modules\Kanban\Models; */ class KanbanCard implements \JsonSerializable { - private $id = 0; + /** + * ID. + * + * @var int + * @since 1.0.0 + */ + protected int $id = 0; + /** + * Name. + * + * @var string + * @since 1.0.0 + */ + private string $name = ''; - private $name = ''; + private int $status = CardStatus::ACTIVE; - private $status = CardStatus::ACTIVE; - - private $type = CardType::TEXT; - - private $description = ''; + private int $type = CardType::TEXT; + /** + * Description. + * + * @var string + * @since 1.0.0 + */ + private string $description = ''; private $column = 0; @@ -50,6 +66,11 @@ class KanbanCard implements \JsonSerializable private $media = []; + /** + * Constructor. + * + * @since 1.0.0 + */ public function __construct() { $this->createdAt = new \DateTime('now'); @@ -65,6 +86,13 @@ class KanbanCard implements \JsonSerializable $this->order = $order; } + /** + * Get id. + * + * @return int Model id + * + * @since 1.0.0 + */ public function getId() : int { return $this->id; @@ -80,11 +108,27 @@ class KanbanCard implements \JsonSerializable return $this->column; } + /** + * Get name + * + * @return string + * + * @since 1.0.0 + */ public function getName() : string { return $this->name; } + /** + * Set name + * + * @param string $name Name + * + * @return void + * + * @since 1.0.0 + */ public function setName(string $name) : void { $this->name = $name; @@ -120,26 +164,65 @@ class KanbanCard implements \JsonSerializable $this->ref = $ref; } + /** + * Get description + * + * @return string + * + * @since 1.0.0 + */ public function getDescription() : string { return $this->description; } + /** + * Set description + * + * @param string $description Description + * + * @return void + * + * @since 1.0.0 + */ public function setDescription(string $description) : void { $this->description = $description; } + /** + * Get created by + * + * @return int|\phpOMS\Account\Account + * + * @since 1.0.0 + */ public function getCreatedBy() { return $this->createdBy; } - public function setCreatedBy(int $id) : void + /** + * Set created by + * + * @param mixed $id Created by + * + * @return void + * + * @since 1.0.0 + */ + public function setCreatedBy($id) : void { $this->createdBy = $id; } + /** + * Get created at date time + * + * @return \DateTime + * + * @since 1.0.0 + */ public function getCreatedAt() : \DateTime { return $this->createdAt; diff --git a/Models/KanbanCardComment.php b/Models/KanbanCardComment.php index 0d5f753..bb8131f 100644 --- a/Models/KanbanCardComment.php +++ b/Models/KanbanCardComment.php @@ -24,9 +24,20 @@ namespace Modules\Kanban\Models; */ class KanbanCardComment implements \JsonSerializable { - private $id = 0; - - private $description = ''; + /** + * ID. + * + * @var int + * @since 1.0.0 + */ + protected int $id = 0; + /** + * Description. + * + * @var string + * @since 1.0.0 + */ + private string $description = ''; private $card = 0; @@ -36,11 +47,23 @@ class KanbanCardComment implements \JsonSerializable private $media = []; + /** + * Constructor. + * + * @since 1.0.0 + */ public function __construct() { $this->createdAt = new \DateTime('now'); } + /** + * Get id. + * + * @return int Model id + * + * @since 1.0.0 + */ public function getId() : int { return $this->id; @@ -56,26 +79,65 @@ class KanbanCardComment implements \JsonSerializable return $this->card; } + /** + * Get description + * + * @return string + * + * @since 1.0.0 + */ public function getDescription() : string { return $this->description; } + /** + * Set description + * + * @param string $description Description + * + * @return void + * + * @since 1.0.0 + */ public function setDescription(string $description) : void { $this->description = $description; } + /** + * Get created by + * + * @return int|\phpOMS\Account\Account + * + * @since 1.0.0 + */ public function getCreatedBy() : int { return $this->createdBy; } - public function setCreatedBy(int $id) : void + /** + * Set created by + * + * @param mixed $id Created by + * + * @return void + * + * @since 1.0.0 + */ + public function setCreatedBy($id) : void { $this->createdBy = $id; } + /** + * Get created at date time + * + * @return \DateTime + * + * @since 1.0.0 + */ public function getCreatedAt() : \DateTime { return $this->createdAt; diff --git a/Models/KanbanColumn.php b/Models/KanbanColumn.php index 752f9ba..8900777 100644 --- a/Models/KanbanColumn.php +++ b/Models/KanbanColumn.php @@ -24,9 +24,20 @@ namespace Modules\Kanban\Models; */ class KanbanColumn implements \JsonSerializable { - private $id = 0; - - private $name = ''; + /** + * ID. + * + * @var int + * @since 1.0.0 + */ + protected int $id = 0; + /** + * Name. + * + * @var string + * @since 1.0.0 + */ + private string $name = ''; private $order = 0; @@ -34,10 +45,13 @@ class KanbanColumn implements \JsonSerializable private $cards = []; - public function __construct() - { - } - + /** + * Get id. + * + * @return int Model id + * + * @since 1.0.0 + */ public function getId() : int { return $this->id; @@ -63,11 +77,27 @@ class KanbanColumn implements \JsonSerializable return $this->board; } + /** + * Get name + * + * @return string + * + * @since 1.0.0 + */ public function getName() : string { return $this->name; } + /** + * Set name + * + * @param string $name Name + * + * @return void + * + * @since 1.0.0 + */ public function setName(string $name) : void { $this->name = $name; diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index 247d88b..b3caee6 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -1,4 +1,4 @@ - [ 'Archive' => 'Archive', 'Boards' => 'Boards', diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 4d407e2..74860fa 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -1,4 +1,4 @@ - [ 'Dashboard' => 'Dashboard', ]];