id; } /** * Get the order * * @return int * * @since 1.0.0 */ public function getOrder() : int { return $this->order; } /** * Set the order * * @param int $order Order * * @return void * * @since 1.0.0 */ public function setOrder(int $order) : void { $this->order = $order; } /** * Get the board this column belongs to * * @param int $board Board * * @return void * * @since 1.0.0 */ public function setBoard(int $board) : void { $this->board = $board; } /** * Get the board this column belongs to * * @return int * * @since 1.0.0 */ public function getBoard() : int { return $this->board; } /** * Get the cards * * @return array * * @since 1.0.0 */ public function getCards() : array { return $this->cards; } /** * Add a card * * @param KanbanCard $card Card * * @return void * * @since 1.0.0 */ public function addCard(KanbanCard $card) : void { $this->cards[] = $card; } /** * Remove a card * * @param int $id Card to remove * * @return bool * * @since 1.0.0 */ public function removeCard(int $id) : bool { if (isset($this->cards[$id])) { unset($this->cards[$id]); return true; } return false; } /** * {@inheritdoc} */ public function jsonSerialize() : array { return []; } }