Merge pull request #3113 from nextcloud/backport/3111/stable18

[stable18] add example for type annotation
This commit is contained in:
Morris Jobke 2020-08-20 08:12:05 +02:00 committed by GitHub
commit aff0b79f67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 [