<?php

namespace Sabre\EnhancedAirBook\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BasicFOP Structs
 * @subpackage Structs
 */
class BasicFOP extends AbstractStructBase
{
    /**
     * The CC_Info
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\EnhancedAirBook\Structs\CC_Info
     */
    public $CC_Info;
    /**
     * The Type
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $Type;
    /**
     * The Reference
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var int
     */
    public $Reference;
    /**
     * The ManualApprovalCode
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $ManualApprovalCode;
    /**
     * Constructor method for BasicFOP
     * @uses BasicFOP::setCC_Info()
     * @uses BasicFOP::setType()
     * @uses BasicFOP::setReference()
     * @uses BasicFOP::setManualApprovalCode()
     * @param \Sabre\EnhancedAirBook\Structs\CC_Info $cC_Info
     * @param string $type
     * @param int $reference
     * @param string $manualApprovalCode
     */
    public function __construct(\Sabre\EnhancedAirBook\Structs\CC_Info $cC_Info = null, $type = null, $reference = null, $manualApprovalCode = null)
    {
        $this
            ->setCC_Info($cC_Info)
            ->setType($type)
            ->setReference($reference)
            ->setManualApprovalCode($manualApprovalCode);
    }
    /**
     * Get CC_Info value
     * @return \Sabre\EnhancedAirBook\Structs\CC_Info|null
     */
    public function getCC_Info()
    {
        return $this->CC_Info;
    }
    /**
     * Set CC_Info value
     * @param \Sabre\EnhancedAirBook\Structs\CC_Info $cC_Info
     * @return \Sabre\EnhancedAirBook\Structs\BasicFOP
     */
    public function setCC_Info(\Sabre\EnhancedAirBook\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\EnhancedAirBook\Structs\BasicFOP
     */
    public function setType($type = null)
    {
        $this->Type = $type;
        return $this;
    }
    /**
     * Get Reference value
     * @return int|null
     */
    public function getReference()
    {
        return $this->Reference;
    }
    /**
     * Set Reference value
     * @param int $reference
     * @return \Sabre\EnhancedAirBook\Structs\BasicFOP
     */
    public function setReference($reference = null)
    {
        $this->Reference = $reference;
        return $this;
    }
    /**
     * Get ManualApprovalCode value
     * @return string|null
     */
    public function getManualApprovalCode()
    {
        return $this->ManualApprovalCode;
    }
    /**
     * Set ManualApprovalCode value
     * @param string $manualApprovalCode
     * @return \Sabre\EnhancedAirBook\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\EnhancedAirBook\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__;
    }
}
