Add more method docs

This commit is contained in:
Matias De lellis
2021-09-20 21:45:37 -03:00
parent af37467128
commit d16203c691

View File

@@ -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
]; ];
} }