ILIAS
trunk Revision v11.0_alpha-2658-ge2404539063
◀ ilDoc Overview
ConversationDto.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\OnScreenChat\DTO
;
22
27
class
ConversationDto
28
{
29
private
bool
$isGroup
=
false
;
31
private
array
$subscriberUsrIds
= [];
32
private
MessageDto
$lastMessage
;
33
34
public
function
__construct
(
private
string
$id
)
35
{
36
$this->lastMessage =
new
MessageDto
(
''
, $this);
37
}
38
39
public
function
getId
(): string
40
{
41
return
$this->id
;
42
}
43
44
public
function
setId
(
string
$id
): void
45
{
46
$this->
id
=
$id
;
47
}
48
49
public
function
isGroup
(): bool
50
{
51
return
$this->isGroup
;
52
}
53
54
public
function
setIsGroup
(
bool
$isGroup): void
55
{
56
$this->
isGroup
=
$isGroup
;
57
}
58
62
public
function
getSubscriberUsrIds
(): array
63
{
64
return
$this->subscriberUsrIds
;
65
}
66
70
public
function
setSubscriberUsrIds
(array $subscriberUsrIds): void
71
{
72
$this->subscriberUsrIds =
$subscriberUsrIds
;
73
}
74
75
public
function
getLastMessage
():
MessageDto
76
{
77
return
$this->lastMessage
;
78
}
79
80
public
function
setLastMessage
(
MessageDto
$lastMessage): void
81
{
82
$this->lastMessage =
$lastMessage
;
83
}
84
}
ILIAS\OnScreenChat\DTO\ConversationDto
Definition:
ConversationDto.php:27
ILIAS\OnScreenChat\DTO\ConversationDto\__construct
__construct(private string $id)
Definition:
ConversationDto.php:34
ILIAS\OnScreenChat\DTO\ConversationDto\$subscriberUsrIds
array $subscriberUsrIds
Definition:
ConversationDto.php:31
ILIAS\OnScreenChat\DTO\ConversationDto\isGroup
isGroup()
Definition:
ConversationDto.php:49
ILIAS\OnScreenChat\DTO\ConversationDto\setLastMessage
setLastMessage(MessageDto $lastMessage)
Definition:
ConversationDto.php:80
ILIAS\OnScreenChat\DTO\ConversationDto\$isGroup
bool $isGroup
Definition:
ConversationDto.php:29
ILIAS\OnScreenChat\DTO\ConversationDto\getSubscriberUsrIds
getSubscriberUsrIds()
Definition:
ConversationDto.php:62
ILIAS\OnScreenChat\DTO\MessageDto
Definition:
MessageDto.php:27
ILIAS\OnScreenChat\DTO
Definition:
ConversationDto.php:21
ILIAS\OnScreenChat\DTO\ConversationDto\setSubscriberUsrIds
setSubscriberUsrIds(array $subscriberUsrIds)
Definition:
ConversationDto.php:70
ILIAS\OnScreenChat\DTO\ConversationDto\getLastMessage
getLastMessage()
Definition:
ConversationDto.php:75
ILIAS\OnScreenChat\DTO\ConversationDto\setIsGroup
setIsGroup(bool $isGroup)
Definition:
ConversationDto.php:54
ILIAS\OnScreenChat\DTO\ConversationDto\setId
setId(string $id)
Definition:
ConversationDto.php:44
ILIAS\OnScreenChat\DTO\ConversationDto\$lastMessage
MessageDto $lastMessage
Definition:
ConversationDto.php:32
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
ILIAS\OnScreenChat\DTO\ConversationDto\getId
getId()
Definition:
ConversationDto.php:39
components
ILIAS
OnScreenChat
classes
DTO
ConversationDto.php
Generated on Tue Sep 2 2025 23:03:35 for ILIAS by
1.8.13 (using
Doxyfile
)