aboutsummaryrefslogtreecommitdiff
path: root/model/Room.php
diff options
context:
space:
mode:
authorMaZderMind2015-03-14 18:59:33 +0100
committerMaZderMind2015-03-29 21:38:59 +0200
commit97fe6bf0af2989abbaaba138df3c54c4e55af3c9 (patch)
tree203f677848b3ab2e5dd7c6f83097ca95aea6eaf4 /model/Room.php
parenta95c081a74a59b5ba9ea6f036b792b62100b3b57 (diff)
Use normal Constructor
Diffstat (limited to '')
-rw-r--r--model/Room.php7
1 files changed, 1 insertions, 6 deletions
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);