Files
quicknotes/lib/Db/Tag.php
2023-06-14 22:47:41 -03:00

27 lines
473 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(): array {
return [
'id' => $this->id,
'userid' => $this->userId,
'name' => $this->name
];
}
}