changes
This commit is contained in:
@@ -10,6 +10,7 @@ class Stack extends Entity implements JsonSerializable {
|
||||
public $id;
|
||||
protected $title;
|
||||
protected $boardId;
|
||||
protected $cards = array();
|
||||
protected $order;
|
||||
public function __construct() {
|
||||
$this->addType('id','integer');
|
||||
@@ -17,12 +18,16 @@ class Stack extends Entity implements JsonSerializable {
|
||||
$this->addType('order','integer');
|
||||
|
||||
}
|
||||
public function setCards($cards) {
|
||||
$this->cards = $cards;
|
||||
}
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'title' => $this->title,
|
||||
'order' => $this->order,
|
||||
'boardId' => $this->boardId
|
||||
'boardId' => $this->boardId,
|
||||
'cards' => $this->cards,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user