ILIAS  release_8 Revision v8.24
MessageDto.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28{
29 private string $id;
31 private int $createdTimestamp;
32 private int $authorUsrId = 0;
33 private string $message = '';
34
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
54 {
56 }
57
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 {
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}
__construct(string $id, ConversationDto $conversation)
Definition: MessageDto.php:35
setAuthorUsrId(int $authorUsrId)
Definition: MessageDto.php:68
setConversation(ConversationDto $conversation)
Definition: MessageDto.php:58
setCreatedTimestamp(int $createdTimestamp)
Definition: MessageDto.php:78