mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
23 lines
359 B
PHP
23 lines
359 B
PHP
<?php
|
|
namespace OCA\QuickNotes\Db;
|
|
|
|
use JsonSerializable;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
/**
|
|
* @method void setColor(string $color)
|
|
* @method string getColor()
|
|
*/
|
|
class Color extends Entity implements JsonSerializable {
|
|
|
|
protected $color;
|
|
|
|
public function jsonSerialize(): array {
|
|
return [
|
|
'id' => $this->id,
|
|
'color' => $this->color
|
|
];
|
|
}
|
|
|
|
} |