Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
CRAP | |
100.00% |
1 / 1 |
| ConferenceColor | |
100.00% |
4 / 4 |
|
100.00% |
4 / 4 |
4 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getPrimary | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getBackground | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getOthers | |
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 ConferenceColor extends ScheduleData |
| 8 | { |
| 9 | /** |
| 10 | * @param array<string, string> $others type -> color |
| 11 | */ |
| 12 | public function __construct( |
| 13 | protected ?string $primary = null, |
| 14 | protected ?string $background = null, |
| 15 | protected array $others = [] |
| 16 | ) { |
| 17 | } |
| 18 | |
| 19 | public function getPrimary(): ?string |
| 20 | { |
| 21 | return $this->primary; |
| 22 | } |
| 23 | |
| 24 | public function getBackground(): ?string |
| 25 | { |
| 26 | return $this->background; |
| 27 | } |
| 28 | |
| 29 | public function getOthers(): array |
| 30 | { |
| 31 | return $this->others; |
| 32 | } |
| 33 | } |