<?php

namespace Sabre\AirTicket\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BasicFOP Structs
 * Meta informations extracted from the WSDL
 * - documentation: BasicFOP cannot combine with .../BSP_Ticketing, or .../SabreSonicTicketing, or .../Multiple CC_FOP.
 * @subpackage Structs
 */
class BasicFOP extends AbstractStructBase
{
    /**
     * The CC_Info
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\AirTicket\Structs\CC_Info
     */
    public $CC_Info;
    /**
     * The Type
     * Meta informations extracted from the WSDL
     * - documentation: "Type" is used to specify the payment type. Acceptable values are "CA," (cash) "CK," (check) "CQ," (cheque). If utilizing a credit card please omit @Type, and populate the .../CC_Info child node. | "Type" is used to specify the
     * payment type. Acceptable values are "CA," (cash) "CK," (check) "CQ," (cheque) "PT," "PTACA," (PTA cash) "PTAGTCK." (PTA agency check) or "PTCK" (PTA check). If utilizing a credit card please omit @Type, and populate the .../CC_Info child node, unless
     * needing to specify a PTA credit card form of payment. For a PTA credit card form of payment the client should pass Type="PT" and populate the .../CC_Info child node with the relevant credit card information.
     * - use: optional
     * @var string
     */
    public $Type;
    /**
     * The ManualApprovalCode
     * Meta informations extracted from the WSDL
     * - documentation: "ManualApprovalCode" is used to specify a manual approval code for non-credit card forms of payment.
     * - use: optional
     * @var string
     */
    public $ManualApprovalCode;
    /**
     * Constructor method for BasicFOP
     * @uses BasicFOP::setCC_Info()
     * @uses BasicFOP::setType()
     * @uses BasicFOP::setManualApprovalCode()
     * @param \Sabre\AirTicket\Structs\CC_Info $cC_Info
     * @param string $type
     * @param string $manualApprovalCode
     */
    public function __construct(\Sabre\AirTicket\Structs\CC_Info $cC_Info = null, $type = null, $manualApprovalCode = null)
    {
        $this
            ->setCC_Info($cC_Info)
            ->setType($type)
            ->setManualApprovalCode($manualApprovalCode);
    }
    /**
     * Get CC_Info value
     * @return \Sabre\AirTicket\Structs\CC_Info|null
     */
    public function getCC_Info()
    {
        return $this->CC_Info;
    }
    /**
     * Set CC_Info value
     * @param \Sabre\AirTicket\Structs\CC_Info $cC_Info
     * @return \Sabre\AirTicket\Structs\BasicFOP
     */
    public function setCC_Info(\Sabre\AirTicket\Structs\CC_Info $cC_Info = null)
    {
        $this->CC_Info = $cC_Info;
        return $this;
    }
    /**
     * Get Type value
     * @return string|null
     */
    public function getType()
    {
        return $this->Type;
    }
    /**
     * Set Type value
     * @param string $type
     * @return \Sabre\AirTicket\Structs\BasicFOP
     */
    public function setType($type = null)
    {
        $this->Type = $type;
        return $this;
    }
    /**
     * Get ManualApprovalCode value
     * @return string|null
     */
    public function getManualApprovalCode()
    {
        return $this->ManualApprovalCode;
    }
    /**
     * Set ManualApprovalCode value
     * @param string $manualApprovalCode
     * @return \Sabre\AirTicket\Structs\BasicFOP
     */
    public function setManualApprovalCode($manualApprovalCode = null)
    {
        $this->ManualApprovalCode = $manualApprovalCode;
        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\AirTicket\Structs\BasicFOP
     */
    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__;
    }
}
