Total Complexity | 9 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class ChatMessage { |
||
16 | use \Nette\SmartObject; |
||
17 | |||
18 | protected int $id; |
||
19 | protected string $message; |
||
20 | protected string $when; |
||
21 | protected ChatCharacter $character; |
||
22 | |||
23 | public function __construct(int $id, string $message, string $when, ChatCharacter $character) { |
||
24 | $this->id = $id; |
||
25 | $this->message = $message; |
||
26 | $this->when = $when; |
||
27 | $this->character = $character; |
||
28 | } |
||
29 | |||
30 | public function getId(): int { |
||
31 | return $this->id; |
||
32 | } |
||
33 | |||
34 | protected function setId(int $id): void { |
||
35 | $this->id = $id; |
||
36 | } |
||
37 | |||
38 | public function getMessage(): string { |
||
39 | return $this->message; |
||
40 | } |
||
41 | |||
42 | protected function setMessage(string $message): void { |
||
44 | } |
||
45 | |||
46 | public function getWhen(): string { |
||
47 | return $this->when; |
||
48 | } |
||
49 | |||
50 | protected function setWhen(string $when): void { |
||
51 | $this->when = $when; |
||
52 | } |
||
53 | |||
54 | public function getCharacter(): ChatCharacter { |
||
56 | } |
||
57 | |||
58 | protected function setCharacter(ChatCharacter $character): void { |
||
60 | } |
||
61 | } |
||
62 | ?> |