private $type;
private $status;
+ public function __construct($id, $type, $status){
+ $this->id = $id;
+ $this->type = $type;
+ $this->status = $status;
+ }
+
public function id(){
if(!isset($this->id)){
throw new Exception('Invalid Operation');
class Purchase {
+ public function __construct($id, $order, $ticket, $price, $name){
+ $this->id = $id;
+ $this->ticket = $ticket;
+ $this->order = $order;
+ $this->price = $price;
+ $this->name = $name;
+ }
+
private $id;
private $ticket;
private $order;
class Order {
+ public function __construct($id, $user, $time, $status){
+ $this->id = $id;
+ $this->status = $status;
+ $this->user = $user;
+ $this->time = $time;
+ }
+
private $id;
private $user;
private $time;