Files
deck/db/label.php
2016-07-02 22:13:32 +02:00

26 lines
575 B
PHP

<?php
// db/author.php
namespace OCA\Deck\Db;
use JsonSerializable;
class Label extends Entity implements JsonSerializable {
public $id;
protected $title;
protected $color;
protected $boardId;
protected $cardId;
public function __construct() {
$this->addType('id','integer');
}
public function jsonSerialize() {
return [
'id' => $this->id,
'title' => $this->title,
'boardId' => $this->boardId,
'cardId' => $this->cardId,
'color' => $this->color,
];
}
}