diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-27 23:43:21 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-12-08 02:20:48 +0100 |
commit | 42721e95726559b4a601240bb5b0fe4e5d755b2a (patch) | |
tree | 6810e05f845ca787acc1d02fa82d3df15cd0ef9b /src/Helpers/Schedule/Room.php | |
parent | 377b390c97afb9106fd9a139819d00306f996f24 (diff) |
Added Schedule parsing and replaced old Fahrplan importer
Resolves #553 (Change Frab Import from xCal to XML)
Resolves #538 (Feature Request: Multi Frab Import)
Diffstat (limited to 'src/Helpers/Schedule/Room.php')
-rw-r--r-- | src/Helpers/Schedule/Room.php | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/Helpers/Schedule/Room.php b/src/Helpers/Schedule/Room.php new file mode 100644 index 00000000..45a09f5f --- /dev/null +++ b/src/Helpers/Schedule/Room.php @@ -0,0 +1,52 @@ +<?php + +declare(strict_types=1); + +namespace Engelsystem\Helpers\Schedule; + +class Room +{ + /** @var string required */ + protected $name; + + /** @var Event[] */ + protected $event; + + /** + * Room constructor. + * + * @param string $name + * @param Event[] $events + */ + public function __construct( + string $name, + array $events = [] + ) { + $this->name = $name; + $this->event = $events; + } + + /** + * @return string + */ + public function getName(): string + { + return $this->name; + } + + /** + * @return Event[] + */ + public function getEvent(): array + { + return $this->event; + } + + /** + * @param Event[] $event + */ + public function setEvent(array $event): void + { + $this->event = $event; + } +} |