Initial COmmit WIP
This commit is contained in:
26
db/board.php
Normal file
26
db/board.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
// db/author.php
|
||||
namespace OCA\Deck\Db;
|
||||
|
||||
use JsonSerializable;
|
||||
use OCP\AppFramework\Db\Entity;
|
||||
|
||||
class Board extends Entity implements JsonSerializable {
|
||||
|
||||
public $id;
|
||||
protected $title;
|
||||
protected $owner;
|
||||
protected $color;
|
||||
protected $archived;
|
||||
public function __construct() {
|
||||
$this->addType('id','integer');
|
||||
}
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'title' => $this->title,
|
||||
'owner' => $this->owner,
|
||||
'color' => $this->color
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user