nextcloud-app-radio/lib/Db/Station.php

22 lines
352 B
PHP
Raw Normal View History

2020-10-30 20:16:27 +00:00
<?php
namespace OCA\Radio\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class Station extends Entity implements JsonSerializable {
protected $title;
protected $content;
protected $userId;
public function jsonSerialize(): array {
return [
'id' => $this->id,
'title' => $this->title,
'content' => $this->content
];
}
}