array( 'Address' => "Address" ), 'numeric' => array( 'Type' => "Type", 'CampaignId' => "CampaignId" ), 'campaign' => array( 'Campaign' => "Campaign" ) ); const PAYPAL = 1; const BITCOIN = 2; const IBAN = 3; public function GetLogo() { switch($this->sType) { case PaymentMethod::PAYPAL: return array("image" => "/static/images/paypal.png", "text" => "PayPal"); case PaymentMethod::BITCOIN: return array("image" => "/static/images/bitcoin.png", "text" => "Bitcoin"); case PaymentMethod::IBAN: return array("text" => "IBAN"); default: return array("text" => "Unknown"); } } }