diff options
Diffstat (limited to 'lib/Model/Message.php')
-rw-r--r-- | lib/Model/Message.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Model/Message.php b/lib/Model/Message.php index ddc42bea8..66a51be98 100644 --- a/lib/Model/Message.php +++ b/lib/Model/Message.php @@ -168,6 +168,11 @@ class Message { \in_array($this->getActorType(), [Attendee::ACTOR_USERS, Attendee::ACTOR_GUESTS]); } + /** + * @param string $format + * @psalm-param 'json'|'xml' $format + * @return array + */ public function toArray(string $format): array { $expireDate = $this->getComment()->getExpireDate(); |