From 986561a4ed680dece575763d3942dc51e3c9dc97 Mon Sep 17 00:00:00 2001 From: Richard Whitehouse Date: Fri, 4 Feb 2011 23:43:39 +0000 Subject: [PATCH] Ticket::type --- index.php | 7 +++++++ 1 file changed, 7 insertions(+) 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){ -- 2.34.1