ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
MessageDto.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\OnScreenChat\DTO;
22 
28 {
29  private int $createdTimestamp;
30  private int $authorUsrId = 0;
31  private string $message = '';
32 
33  public function __construct(private string $id, private ConversationDto $conversation)
34  {
35  $this->createdTimestamp = time();
36  }
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 getConversation(): ConversationDto
50  {
51  return $this->conversation;
52  }
53 
54  public function setConversation(ConversationDto $conversation): void
55  {
56  $this->conversation = $conversation;
57  }
58 
59  public function getAuthorUsrId(): int
60  {
61  return $this->authorUsrId;
62  }
63 
64  public function setAuthorUsrId(int $authorUsrId): void
65  {
66  $this->authorUsrId = $authorUsrId;
67  }
68 
69  public function getCreatedTimestamp(): int
70  {
72  }
73 
74  public function setCreatedTimestamp(int $createdTimestamp): void
75  {
76  $this->createdTimestamp = $createdTimestamp;
77  }
78 
79  public function getMessage(): string
80  {
81  return $this->message;
82  }
83 
84  public function setMessage(string $message): void
85  {
86  $this->message = $message;
87  }
88 }
__construct(private string $id, private ConversationDto $conversation)
Definition: MessageDto.php:33
setAuthorUsrId(int $authorUsrId)
Definition: MessageDto.php:64
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
setConversation(ConversationDto $conversation)
Definition: MessageDto.php:54
setCreatedTimestamp(int $createdTimestamp)
Definition: MessageDto.php:74