id." ".$this->name." ".$this->status(); } public function status(){ switch ($this->status){ case 1: return "Waiting Payment"; case 2: return "Payment Confirmed"; case 20: return "Complete"; default: return "Unknown"; } } public function payment_method(){ switch ($this->method){ case 1: return "through Paypal"; case 2: return "offline"; default: return "Unknown"; } } }