add example for type annotattion

Signed-off-by: dassio <dassio@icloud.com>
This commit is contained in:
dassio
2020-08-19 22:02:50 +01:00
parent c4158932a8
commit 7eac51fbbf

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 [