ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
AutoresponderDto.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use DateTimeImmutable;
24
26{
27 public function __construct(private int $sender_id, private int $receiver_id, private DateTimeImmutable $sent_time)
28 {
29 }
30
31 public function getSenderId(): int
32 {
33 return $this->sender_id;
34 }
35
36 public function withSenderId(int $sender_id): self
37 {
38 $clone = clone $this;
39 $clone->sender_id = $sender_id;
40 return $clone;
41 }
42
43 public function getReceiverId(): int
44 {
45 return $this->receiver_id;
46 }
47
48 public function withReceiverId(int $receiver_id): self
49 {
50 $clone = clone $this;
51 $clone->receiver_id = $receiver_id;
52 return $clone;
53 }
54
55 public function getSentTime(): DateTimeImmutable
56 {
57 return $this->sent_time;
58 }
59
60 public function withSentTime(DateTimeImmutable $sent_time): self
61 {
62 $clone = clone $this;
63 $clone->sent_time = $sent_time;
64 return $clone;
65 }
66}
__construct(private int $sender_id, private int $receiver_id, private DateTimeImmutable $sent_time)
withSentTime(DateTimeImmutable $sent_time)