From 6bf9ba397e73f892f221c1d68c9bbab03ade0d4d Mon Sep 17 00:00:00 2001 From: Raul Date: Tue, 3 May 2022 13:00:51 +0200 Subject: [PATCH] Add phpDoc typehints for magic methods Signed-off-by: Raul --- lib/Db/Card.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/lib/Db/Card.php b/lib/Db/Card.php index 91bc6ab08..9b19c2a84 100644 --- a/lib/Db/Card.php +++ b/lib/Db/Card.php @@ -27,6 +27,43 @@ use DateTime; use DateTimeZone; use Sabre\VObject\Component\VCalendar; +/** + * @method string getTitle() + * @method string getDescription() + * @method string getDescriptionPrev() + * @method int getStackId() + * @method int getLastModified() + * @method int getCreatedAt() + * @method bool getArchived() + * @method bool getNotified() + * + * @method void setLabels(Label[] $labels) + * @method null|Label[] getLabels() + * + * @method void setAssignedUsers(User[] $users) + * @method null|User[] getAssignedUsers() + * + * @method void setAttachments(Attachment[] $attachments) + * @method null|Attachment[] getAttachments() + * + * @method void setAttachmentCount(int $count) + * @method null|int getAttachmentCount() + * + * @method void setCommentsUnread(int $count) + * @method null|int getCommentsUnread() + * + * @method void setCommentsCount(int $count) + * @method null|int getCommentsCount() + * + * @method void setOwner(User $user) + * @method null|User getOwner() + * + * @method void setRelatedStack(Stack $stack) + * @method null|Stack getRelatedStack() + * + * @method void setRelatedBoard(Board $board) + * @method null|Board getRelatedBoard() + */ class Card extends RelationalEntity { public const TITLE_MAX_LENGTH = 255;