From: Richard Whitehouse Date: Fri, 4 Feb 2011 23:43:39 +0000 (+0000) Subject: Ticket::type X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=986561a4ed680dece575763d3942dc51e3c9dc97;p=hmb.git Ticket::type --- diff --git a/index.php b/index.php index 7ee4af7..d7efa6f 100644 --- a/index.php +++ b/index.php @@ -194,6 +194,13 @@ class Ticket { return $this->id; } + public function type(){ + if(!isset($this->type)){ + throw new Exception('Invalid Operation'); + } + return $this->type; + } + // STATUS: 0 - FREE, 1 - ALLOCATED, 2 - SOLD public static function Get_Free_Count_By_Type($type){