aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--model/Overview.php2
-rw-r--r--model/Room.php7
2 files changed, 2 insertions, 7 deletions
diff --git a/model/Overview.php b/model/Overview.php
index 005233f..10507cc 100644
--- a/model/Overview.php
+++ b/model/Overview.php
@@ -12,7 +12,7 @@ class Overview
foreach($rooms as $room)
{
try {
- $groups[$group][] = Room::get($room);
+ $groups[$group][] = new Room($room);
}
catch(NotFountException $e)
{
diff --git a/model/Room.php b/model/Room.php
index 5799e96..fc1b40d 100644
--- a/model/Room.php
+++ b/model/Room.php
@@ -4,12 +4,7 @@ class Room
{
private $slug;
- public static function get($slug)
- {
- return new Room($slug);
- }
-
- private function __construct($slug)
+ public function __construct($slug)
{
if(! has('ROOMS.'.$slug))
throw new NotFoundException('Room '.$slug);