Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
6 / 6
CRAP
100.00% covered (success)
100.00%
1 / 1
Day
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
6 / 6
6
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getDate
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getStart
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getEnd
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getIndex
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getRooms
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Engelsystem\Helpers\Schedule;
6
7use Carbon\Carbon;
8
9class Day extends ScheduleData
10{
11    /**
12     * @param Room[] $rooms
13     */
14    public function __construct(
15        protected string $date,
16        protected Carbon $start,
17        protected Carbon $end,
18        protected int $index,
19        protected array $rooms = []
20    ) {
21    }
22
23    public function getDate(): string
24    {
25        return $this->date;
26    }
27
28    public function getStart(): Carbon
29    {
30        return $this->start;
31    }
32
33    public function getEnd(): Carbon
34    {
35        return $this->end;
36    }
37
38    public function getIndex(): int
39    {
40        return $this->index;
41    }
42
43    /**
44     * @return Room[]
45     */
46    public function getRooms(): array
47    {
48        return $this->rooms;
49    }
50}