Ticket::type
authorRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:43:39 +0000 (23:43 +0000)
committerRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 23:43:39 +0000 (23:43 +0000)
index.php

index 7ee4af7e2a00afcf7c5066ee5019a4d94b730eda..d7efa6fb996fe10e2f0f4b2286c8eb27e704b938 100644 (file)
--- 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){