<?php

namespace Sabre\OTAAirPrice\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CC_Info Structs
 * @subpackage Structs
 */
class CC_Info extends AbstractStructBase
{
    /**
     * The PaymentCard
     * @var \Sabre\OTAAirPrice\Structs\PaymentCard
     */
    public $PaymentCard;
    /**
     * The Suppress
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var bool
     */
    public $Suppress;
    /**
     * Constructor method for CC_Info
     * @uses CC_Info::setPaymentCard()
     * @uses CC_Info::setSuppress()
     * @param \Sabre\OTAAirPrice\Structs\PaymentCard $paymentCard
     * @param bool $suppress
     */
    public function __construct(\Sabre\OTAAirPrice\Structs\PaymentCard $paymentCard = null, $suppress = null)
    {
        $this
            ->setPaymentCard($paymentCard)
            ->setSuppress($suppress);
    }
    /**
     * Get PaymentCard value
     * @return \Sabre\OTAAirPrice\Structs\PaymentCard|null
     */
    public function getPaymentCard()
    {
        return $this->PaymentCard;
    }
    /**
     * Set PaymentCard value
     * @param \Sabre\OTAAirPrice\Structs\PaymentCard $paymentCard
     * @return \Sabre\OTAAirPrice\Structs\CC_Info
     */
    public function setPaymentCard(\Sabre\OTAAirPrice\Structs\PaymentCard $paymentCard = null)
    {
        $this->PaymentCard = $paymentCard;
        return $this;
    }
    /**
     * Get Suppress value
     * @return bool|null
     */
    public function getSuppress()
    {
        return $this->Suppress;
    }
    /**
     * Set Suppress value
     * @param bool $suppress
     * @return \Sabre\OTAAirPrice\Structs\CC_Info
     */
    public function setSuppress($suppress = null)
    {
        $this->Suppress = $suppress;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \Sabre\OTAAirPrice\Structs\CC_Info
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
