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

30 lines
647 B
PHP

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