ILIAS  release_7 Revision v7.30-3-g800a261c036
MessageDto.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3
5
11{
13 private $id = '';
17 private $authorUsrId;
21 private $message;
22
29 {
30 $this->id = $id;
31 $this->conversation = $conversation;
32 }
33
34
38 public function getId() : string
39 {
40 return $this->id;
41 }
42
46 public function setId(string $id) : void
47 {
48 $this->id = $id;
49 }
50
54 public function getConversation() : ConversationDto
55 {
57 }
58
63 {
64 $this->conversation = $conversation;
65 }
66
70 public function getAuthorUsrId() : int
71 {
72 return $this->authorUsrId;
73 }
74
78 public function setAuthorUsrId(int $authorUsrId) : void
79 {
80 $this->authorUsrId = $authorUsrId;
81 }
82
86 public function getCreatedTimestamp() : int
87 {
89 }
90
94 public function setCreatedTimestamp(int $createdTimestamp) : void
95 {
96 $this->createdTimestamp = $createdTimestamp;
97 }
98
102 public function getMessage() : string
103 {
104 return $this->message;
105 }
106
110 public function setMessage(string $message) : void
111 {
112 $this->message = $message;
113 }
114}
An exception for terminatinating execution or to throw for unit testing.
__construct(string $id, ConversationDto $conversation)
MessageDtop constructor.
Definition: MessageDto.php:28
setAuthorUsrId(int $authorUsrId)
Definition: MessageDto.php:78
setConversation(ConversationDto $conversation)
Definition: MessageDto.php:62
setCreatedTimestamp(int $createdTimestamp)
Definition: MessageDto.php:94