Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
CRAP | |
100.00% |
1 / 1 |
ConferenceTrack | |
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
4 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getColor | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getSlug | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Engelsystem\Helpers\Schedule; |
6 | |
7 | class ConferenceTrack extends ScheduleData |
8 | { |
9 | public function __construct( |
10 | protected string $name, |
11 | protected ?string $color = null, |
12 | protected ?string $slug = null, |
13 | ) { |
14 | } |
15 | |
16 | public function getName(): string |
17 | { |
18 | return $this->name; |
19 | } |
20 | |
21 | public function getColor(): ?string |
22 | { |
23 | return $this->color; |
24 | } |
25 | |
26 | public function getSlug(): ?string |
27 | { |
28 | return $this->slug; |
29 | } |
30 | } |