From 97fe6bf0af2989abbaaba138df3c54c4e55af3c9 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 14 Mar 2015 18:59:33 +0100 Subject: Use normal Constructor --- model/Room.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'model/Room.php') 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); -- cgit v1.2.3