mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-21 21:30:08 +00:00
Add property-read to Message / Room DBOs
This commit is contained in:
parent
4a659214a0
commit
9c9e634388
@ -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 @@
|
||||
|
||||
/**
|
||||
* 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 {
|
||||
/**
|
||||
|
@ -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 @@
|
||||
|
||||
/**
|
||||
* 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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user