mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
Add more method docs
This commit is contained in:
@@ -5,16 +5,22 @@ use JsonSerializable;
|
|||||||
|
|
||||||
use OCP\AppFramework\Db\Entity;
|
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 {
|
class Tag extends Entity implements JsonSerializable {
|
||||||
|
|
||||||
protected $name;
|
|
||||||
protected $userId;
|
protected $userId;
|
||||||
|
protected $name;
|
||||||
|
|
||||||
public function jsonSerialize() {
|
public function jsonSerialize() {
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'name' => $this->name,
|
'userid' => $this->userId,
|
||||||
'userid' => $this->userId
|
'name' => $this->name
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user