20 lines
301 B
PHP
20 lines
301 B
PHP
<?php
|
|
|
|
namespace OCA\Radio\Db;
|
|
|
|
use JsonSerializable;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
class Note extends Entity implements JsonSerializable {
|
|
protected $station
|
|
protected $userId;
|
|
|
|
public function jsonSerialize(): array {
|
|
return [
|
|
'id' => $this->id,
|
|
'station' => $this->station
|
|
];
|
|
}
|
|
}
|