mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 15:47:17 +01:00
27 lines
466 B
PHP
27 lines
466 B
PHP
<?php
|
|
namespace OCA\QuickNotes\Db;
|
|
|
|
use JsonSerializable;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
/**
|
|
* @method string getUserId()
|
|
* @method void setUserId(string $userId)
|
|
* @method string getName()
|
|
* @method void setName(string $name)
|
|
*/
|
|
class Tag extends Entity implements JsonSerializable {
|
|
|
|
protected $userId;
|
|
protected $name;
|
|
|
|
public function jsonSerialize() {
|
|
return [
|
|
'id' => $this->id,
|
|
'userid' => $this->userId,
|
|
'name' => $this->name
|
|
];
|
|
}
|
|
|
|
} |