From dcce4211d525e04c202a32bdc2d2c9ff8742b17c Mon Sep 17 00:00:00 2001 From: Richard Whitehouse Date: Fri, 4 Feb 2011 23:37:46 +0000 Subject: [PATCH] Add Purchase::type --- index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.php b/index.php index a2efad1..fc38e79 100644 --- a/index.php +++ b/index.php @@ -274,6 +274,12 @@ class Purchase { return $this->ticket; } + public function type(){ + $ticket = Ticket::Get($this->ticket); + $type = Type::Get($ticket->type()); + return $type->name(); + } + private $id; private $ticket; private $order; -- 2.34.1