mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
add example for type annotattion
Signed-off-by: dassio <dassio@icloud.com>
This commit is contained in:
@@ -302,6 +302,10 @@ Now that the tables are created we want to map the database result to a PHP obje
|
||||
protected $title;
|
||||
protected $content;
|
||||
protected $userId;
|
||||
|
||||
public function __construct() {
|
||||
$this->addType('id','integer');
|
||||
}
|
||||
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user