ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
◀ ilDoc Overview
PoolReservations.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\BookingManager\Notification
;
22
23
class
PoolReservations
24
{
28
public
function
__construct
(
29
protected
string
$title,
30
protected
string
$goto,
31
protected
array $reservations
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
}
42
43
public
function
getTitle
(): string
44
{
45
return
$this->title;
46
}
47
48
public
function
getGoto
(): string
49
{
50
return
$this->goto;
51
}
52
56
public
function
getReservations
(): array
57
{
58
return
$this->reservations;
59
}
60
}
ILIAS\BookingManager\Notification\PoolReservations
Definition:
PoolReservations.php:24
ILIAS\BookingManager\Notification\PoolReservations\getTitle
getTitle()
Definition:
PoolReservations.php:43
ILIAS\BookingManager\Notification\PoolReservations\getReservations
getReservations()
Definition:
PoolReservations.php:56
ILIAS\BookingManager\Notification\PoolReservations\getGoto
getGoto()
Definition:
PoolReservations.php:48
ILIAS\BookingManager\Notification\PoolReservations\__construct
__construct(protected string $title, protected string $goto, protected array $reservations)
Definition:
PoolReservations.php:28
ILIAS\BookingManager\Notification\Reservation
Definition:
Reservation.php:24
ILIAS\BookingManager\Notification
Definition:
AdminReservation.php:21
components
ILIAS
BookingManager
Notification
PoolReservations.php
Generated on Wed Nov 11 2026 23:06:05 for ILIAS by
1.9.4 (using
Doxyfile
)