Add property-read to Message / Room DBOs

This commit is contained in:
Tim Düsterhus 2020-11-01 14:09:37 +01:00
parent 4a659214a0
commit 9c9e634388
Signed by: TimWolla
GPG Key ID: 8FF75566094168AF
2 changed files with 23 additions and 6 deletions

View File

@ -1,11 +1,11 @@
<?php
/*
* Copyright (c) 2010-2018 Tim Düsterhus.
* Copyright (c) 2010-2020 Tim Düsterhus.
*
* Use of this software is governed by the Business Source License
* included in the LICENSE file.
*
* Change Date: 2024-10-20
* Change Date: 2024-11-01
*
* On the date above, in accordance with the Business Source
* License, use of this software will be governed by version 2
@ -16,6 +16,16 @@ namespace chat\data\message;
/**
* Represents a chat message.
*
* @property-read integer $messageID
* @property-read integer $time
* @property-read integer $roomID
* @property-read integer $userID
* @property-read string $username
* @property-read integer $objectTypeID
* @property-read mixed $payload
* @property-read integer $hasEmbeddedObjects
* @property-read integer $isDeleted
*/
class Message extends \wcf\data\DatabaseObject {
/**

View File

@ -5,7 +5,7 @@
* Use of this software is governed by the Business Source License
* included in the LICENSE file.
*
* Change Date: 2024-10-20
* Change Date: 2024-11-01
*
* On the date above, in accordance with the Business Source
* License, use of this software will be governed by version 2
@ -23,14 +23,21 @@ use \wcf\util\StringUtil;
/**
* Represents a chat room.
*
* @property-read integer $roomID
* @property-read string $title
* @property-read string $topic
* @property-read integer $position
* @property-read integer $userLimit
* @property-read integer $isTemporary
* @property-read integer $ownerID
* @property-read integer $topicUseHtml
*/
final class Room extends \wcf\data\DatabaseObject implements \wcf\system\request\IRouteController
, \wcf\data\ITitledLinkObject
, \JsonSerializable {
/**
* User to Room mapping.
*
* @param int[]
* @var ?(integer[])
*/
private static $userToRoom = null;