22 lines
396 B
PHP
22 lines
396 B
PHP
<?php
|
|
namespace OCA\Agency\Db;
|
|
|
|
use JsonSerializable;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
class Agency extends Entity implements JsonSerializable {
|
|
|
|
protected $name;
|
|
|
|
public function __construct() {
|
|
$this->addType('id','integer');
|
|
}
|
|
|
|
public function jsonSerialize() {
|
|
return [
|
|
'id' => $this->id,
|
|
'name' => $this->title,
|
|
];
|
|
}
|
|
} |