da_agency/lib/Db/Agency.php

40 lines
995 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;
protected $agencygid;
protected $agencydirid;
protected $standarddirid;
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,
'agencygid' => $this->agencygid,
'agencydirid' => $this->agencydirid,
'standarddirid' => $this->standarddirid,
];
}
}