ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
AutoresponderDto.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Mail\Autoresponder;
22 
24 
25 final class AutoresponderDto
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)