da_agency/lib/Db/Agency.php

34 lines
764 B
PHP

<?php
namespace OCA\Agency\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class Agency extends Entity implements JsonSerializable {
protected $name;
protected $inhaber;
protected $street;
protected $plz;
protected $city;
protected $agencymail;
protected $phone;
public function __construct() {
$this->addType('id','integer');
}
public function jsonSerialize() {
return [
'id' => $this->id,
'name' => $this->name,
'inhaber' => $this->inhaber,
'street' => $this->street,
'plz' => $this->plz,
'city' => $this->city,
'agencymail' => $this->agencymail,
'phone' => $this->phone,
];
}
}