ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
MessageDto.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
MessageDto
28
{
29
private
string
$id
;
30
private
ConversationDto
$conversation
;
31
private
int
$createdTimestamp
;
32
private
int
$authorUsrId
= 0;
33
private
string
$message
=
''
;
34
35
public
function
__construct
(
string
$id,
ConversationDto
$conversation)
36
{
37
$this->
id
=
$id
;
38
$this->conversation =
$conversation
;
39
$this->createdTimestamp = time();
40
}
41
42
43
public
function
getId
(): string
44
{
45
return
$this->id
;
46
}
47
48
public
function
setId
(
string
$id): void
49
{
50
$this->
id
=
$id
;
51
}
52
53
public
function
getConversation
():
ConversationDto
54
{
55
return
$this->conversation
;
56
}
57
58
public
function
setConversation
(
ConversationDto
$conversation): void
59
{
60
$this->conversation =
$conversation
;
61
}
62
63
public
function
getAuthorUsrId
():
int
64
{
65
return
$this->authorUsrId
;
66
}
67
68
public
function
setAuthorUsrId
(
int
$authorUsrId): void
69
{
70
$this->authorUsrId =
$authorUsrId
;
71
}
72
73
public
function
getCreatedTimestamp
():
int
74
{
75
return
$this->createdTimestamp
;
76
}
77
78
public
function
setCreatedTimestamp
(
int
$createdTimestamp): void
79
{
80
$this->createdTimestamp =
$createdTimestamp
;
81
}
82
83
public
function
getMessage
(): string
84
{
85
return
$this->message
;
86
}
87
88
public
function
setMessage
(
string
$message): void
89
{
90
$this->message =
$message
;
91
}
92
}
ILIAS\OnScreenChat\DTO\ConversationDto
Definition:
ConversationDto.php:27
ILIAS\OnScreenChat\DTO\MessageDto\$authorUsrId
int $authorUsrId
Definition:
MessageDto.php:32
ILIAS\OnScreenChat\DTO\MessageDto\__construct
__construct(string $id, ConversationDto $conversation)
Definition:
MessageDto.php:35
ILIAS\OnScreenChat\DTO\MessageDto\getCreatedTimestamp
getCreatedTimestamp()
Definition:
MessageDto.php:73
ILIAS\OnScreenChat\DTO\MessageDto\$message
string $message
Definition:
MessageDto.php:33
ILIAS\OnScreenChat\DTO\MessageDto\getConversation
getConversation()
Definition:
MessageDto.php:53
ILIAS\OnScreenChat\DTO\MessageDto\$id
string $id
Definition:
MessageDto.php:29
ILIAS\OnScreenChat\DTO\MessageDto\$conversation
ConversationDto $conversation
Definition:
MessageDto.php:30
ILIAS\OnScreenChat\DTO\MessageDto
Definition:
MessageDto.php:27
ILIAS\OnScreenChat\DTO\MessageDto\getMessage
getMessage()
Definition:
MessageDto.php:83
ILIAS\OnScreenChat\DTO
Definition:
ConversationDto.php:21
ILIAS\OnScreenChat\DTO\MessageDto\setMessage
setMessage(string $message)
Definition:
MessageDto.php:88
ILIAS\OnScreenChat\DTO\MessageDto\getId
getId()
Definition:
MessageDto.php:43
ILIAS\OnScreenChat\DTO\MessageDto\setAuthorUsrId
setAuthorUsrId(int $authorUsrId)
Definition:
MessageDto.php:68
ILIAS\OnScreenChat\DTO\MessageDto\setId
setId(string $id)
Definition:
MessageDto.php:48
ILIAS\OnScreenChat\DTO\MessageDto\setConversation
setConversation(ConversationDto $conversation)
Definition:
MessageDto.php:58
ILIAS\OnScreenChat\DTO\MessageDto\getAuthorUsrId
getAuthorUsrId()
Definition:
MessageDto.php:63
ILIAS\OnScreenChat\DTO\MessageDto\$createdTimestamp
int $createdTimestamp
Definition:
MessageDto.php:31
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\OnScreenChat\DTO\MessageDto\setCreatedTimestamp
setCreatedTimestamp(int $createdTimestamp)
Definition:
MessageDto.php:78
Services
OnScreenChat
classes
DTO
MessageDto.php
Generated on Wed Sep 3 2025 22:02:37 for ILIAS by
1.8.13 (using
Doxyfile
)