diff options
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; + } +} |