$this->name = $name;
}
+ public function id(){
+ if(!isset($this->id)){
+ throw new Exception('Invalid Operation');
+ }
+ return $this->id;
+ }
+
+ public function name(){
+ if(!isset($this->name)){
+ throw new Exception('Invalid Operation');
+ }
+ return $this->name;
+ }
+
+ public function price(){
+ if(!isset($this->price)){
+ throw new Exception('Invalid Operation');
+ }
+ return $this->price;
+ }
+
+ public function ticket(){
+ if(!isset($this->ticket)){
+ throw new Exception('Invalid Operation');
+ }
+ return $this->ticket;
+ }
+
private $id;
private $ticket;
private $order;