1 | <?php |
||
35 | class Folder extends Entity implements IAPI, \JsonSerializable { |
||
36 | |||
37 | use EntityJSONSerializer; |
||
38 | |||
39 | protected $parentId; |
||
40 | protected $name; |
||
41 | protected $userId; |
||
42 | protected $opened; |
||
43 | protected $deletedAt; |
||
44 | protected $lastModified; |
||
45 | |||
46 | 11 | public function __construct(){ |
|
47 | 11 | $this->addType('parentId', 'integer'); |
|
48 | 11 | $this->addType('opened', 'boolean'); |
|
49 | 11 | $this->addType('deletedAt', 'integer'); |
|
50 | 11 | $this->addType('lastModified', 'integer'); |
|
51 | 11 | } |
|
52 | |||
53 | /** |
||
54 | * Turns entitie attributes into an array |
||
55 | */ |
||
56 | public function jsonSerialize() { |
||
66 | |||
67 | public function toAPI() { |
||
73 | } |