ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\Mail\Autoresponder\AutoresponderDto Class Reference
+ Collaboration diagram for ILIAS\Mail\Autoresponder\AutoresponderDto:

Public Member Functions

 __construct (private int $sender_id, private int $receiver_id, private DateTimeImmutable $sent_time)
 
 getSenderId ()
 
 withSenderId (int $sender_id)
 
 getReceiverId ()
 
 withReceiverId (int $receiver_id)
 
 getSentTime ()
 
 withSentTime (DateTimeImmutable $sent_time)
 

Detailed Description

Definition at line 25 of file AutoresponderDto.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Mail\Autoresponder\AutoresponderDto::__construct ( private int  $sender_id,
private int  $receiver_id,
private DateTimeImmutable  $sent_time 
)

Definition at line 27 of file AutoresponderDto.php.

28  {
29  }

Member Function Documentation

◆ getReceiverId()

ILIAS\Mail\Autoresponder\AutoresponderDto::getReceiverId ( )

Definition at line 43 of file AutoresponderDto.php.

Referenced by ILIAS\Mail\Autoresponder\AutoresponderDatabaseRepository\store(), and ilMailAutoresponderServiceTest\testAutoresponderDeliveryWillBeHandledCorrectlyDependingOnLastSentTime().

43  : int
44  {
45  return $this->receiver_id;
46  }
+ Here is the caller graph for this function:

◆ getSenderId()

ILIAS\Mail\Autoresponder\AutoresponderDto::getSenderId ( )

Definition at line 31 of file AutoresponderDto.php.

Referenced by ILIAS\Mail\Autoresponder\AutoresponderDatabaseRepository\store(), and ilMailAutoresponderServiceTest\testAutoresponderDeliveryWillBeHandledCorrectlyDependingOnLastSentTime().

31  : int
32  {
33  return $this->sender_id;
34  }
+ Here is the caller graph for this function:

◆ getSentTime()

ILIAS\Mail\Autoresponder\AutoresponderDto::getSentTime ( )

◆ withReceiverId()

ILIAS\Mail\Autoresponder\AutoresponderDto::withReceiverId ( int  $receiver_id)

Definition at line 48 of file AutoresponderDto.php.

48  : self
49  {
50  $clone = clone $this;
51  $clone->receiver_id = $receiver_id;
52  return $clone;
53  }

◆ withSenderId()

ILIAS\Mail\Autoresponder\AutoresponderDto::withSenderId ( int  $sender_id)

Definition at line 36 of file AutoresponderDto.php.

36  : self
37  {
38  $clone = clone $this;
39  $clone->sender_id = $sender_id;
40  return $clone;
41  }

◆ withSentTime()

ILIAS\Mail\Autoresponder\AutoresponderDto::withSentTime ( DateTimeImmutable  $sent_time)

Definition at line 60 of file AutoresponderDto.php.

Referenced by ILIAS\Mail\Autoresponder\AutoresponderServiceImpl\handleAutoresponderMails().

60  : self
61  {
62  $clone = clone $this;
63  $clone->sent_time = $sent_time;
64  return $clone;
65  }
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: