blob: 03106e8f2044f40c716095ededf3032fa8832dd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
<?php
declare(strict_types=1);
namespace Engelsystem\Helpers\Schedule;
use Carbon\Carbon;
class Day
{
/** @var string required */
protected $date;
/** @var Carbon required */
protected $start;
/** @var Carbon required */
protected $end;
/** @var int required */
protected $index;
/** @var Room[] */
protected $room;
/**
* Day constructor.
*
* @param string $date
* @param Carbon $start
* @param Carbon $end
* @param int $index
* @param Room[] $rooms
*/
public function __construct(
string $date,
Carbon $start,
Carbon $end,
int $index,
array $rooms = []
) {
$this->date = $date;
$this->start = $start;
$this->end = $end;
$this->index = $index;
$this->room = $rooms;
}
/**
* @return string
*/
public function getDate(): string
{
return $this->date;
}
/**
* @return Carbon
*/
public function getStart(): Carbon
{
return $this->start;
}
/**
* @return Carbon
*/
public function getEnd(): Carbon
{
return $this->end;
}
/**
* @return int
*/
public function getIndex(): int
{
return $this->index;
}
/**
* @return Room[]
*/
public function getRoom(): array
{
return $this->room;
}
}
|