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