ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\BookingManager\Notification\PoolReservations Class Reference
+ Collaboration diagram for ILIAS\BookingManager\Notification\PoolReservations:

Public Member Functions

 __construct (protected string $title, protected string $goto, protected array $reservations)
 
 getTitle ()
 
 getGoto ()
 
 getReservations ()
 

Detailed Description

Definition at line 23 of file PoolReservations.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\BookingManager\Notification\PoolReservations::__construct ( protected string  $title,
protected string  $goto,
protected array  $reservations 
)
Parameters
list<Reservation>$reservations

Definition at line 28 of file PoolReservations.php.

32 {
33 if ($this->goto === '') {
34 throw new \InvalidArgumentException('A pool reminder needs a goto link.');
35 }
36 foreach ($this->reservations as $reservation) {
37 if (!$reservation instanceof Reservation) {
38 throw new \InvalidArgumentException('A pool holds reservation lines.');
39 }
40 }
41 }

Member Function Documentation

◆ getGoto()

ILIAS\BookingManager\Notification\PoolReservations::getGoto ( )

Definition at line 48 of file PoolReservations.php.

48 : string
49 {
50 return $this->goto;
51 }

Referenced by ILIAS\BookingManager\Notification\ReminderMailText\headerLine().

+ Here is the caller graph for this function:

◆ getReservations()

ILIAS\BookingManager\Notification\PoolReservations::getReservations ( )
Returns
list<Reservation>

Definition at line 56 of file PoolReservations.php.

56 : array
57 {
58 return $this->reservations;
59 }

◆ getTitle()

ILIAS\BookingManager\Notification\PoolReservations::getTitle ( )

Definition at line 43 of file PoolReservations.php.

43 : string
44 {
45 return $this->title;
46 }

Referenced by ILIAS\BookingManager\Notification\ReminderMailText\headerLine().

+ Here is the caller graph for this function:

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