<?php

namespace Sabre\EnhancedAirBook\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for VehVendorAvail Structs
 * @subpackage Structs
 */
class VehVendorAvail extends AbstractStructBase
{
    /**
     * The VehResCore
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\EnhancedAirBook\Structs\VehResCore
     */
    public $VehResCore;
    /**
     * The Vendor
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\EnhancedAirBook\Structs\Vendor
     */
    public $Vendor;
    /**
     * Constructor method for VehVendorAvail
     * @uses VehVendorAvail::setVehResCore()
     * @uses VehVendorAvail::setVendor()
     * @param \Sabre\EnhancedAirBook\Structs\VehResCore $vehResCore
     * @param \Sabre\EnhancedAirBook\Structs\Vendor $vendor
     */
    public function __construct(\Sabre\EnhancedAirBook\Structs\VehResCore $vehResCore = null, \Sabre\EnhancedAirBook\Structs\Vendor $vendor = null)
    {
        $this
            ->setVehResCore($vehResCore)
            ->setVendor($vendor);
    }
    /**
     * Get VehResCore value
     * @return \Sabre\EnhancedAirBook\Structs\VehResCore|null
     */
    public function getVehResCore()
    {
        return $this->VehResCore;
    }
    /**
     * Set VehResCore value
     * @param \Sabre\EnhancedAirBook\Structs\VehResCore $vehResCore
     * @return \Sabre\EnhancedAirBook\Structs\VehVendorAvail
     */
    public function setVehResCore(\Sabre\EnhancedAirBook\Structs\VehResCore $vehResCore = null)
    {
        $this->VehResCore = $vehResCore;
        return $this;
    }
    /**
     * Get Vendor value
     * @return \Sabre\EnhancedAirBook\Structs\Vendor|null
     */
    public function getVendor()
    {
        return $this->Vendor;
    }
    /**
     * Set Vendor value
     * @param \Sabre\EnhancedAirBook\Structs\Vendor $vendor
     * @return \Sabre\EnhancedAirBook\Structs\VehVendorAvail
     */
    public function setVendor(\Sabre\EnhancedAirBook\Structs\Vendor $vendor = null)
    {
        $this->Vendor = $vendor;
        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\VehVendorAvail
     */
    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__;
    }
}
