<?php

namespace Sabre\OTAAirSchedule\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for LegOne Structs
 * @subpackage Structs
 */
class LegOne extends AbstractStructBase
{
    /**
     * The VendorPrefs
     * @var \Sabre\OTAAirSchedule\Structs\VendorPrefs
     */
    public $VendorPrefs;
    /**
     * Constructor method for LegOne
     * @uses LegOne::setVendorPrefs()
     * @param \Sabre\OTAAirSchedule\Structs\VendorPrefs $vendorPrefs
     */
    public function __construct(\Sabre\OTAAirSchedule\Structs\VendorPrefs $vendorPrefs = null)
    {
        $this
            ->setVendorPrefs($vendorPrefs);
    }
    /**
     * Get VendorPrefs value
     * @return \Sabre\OTAAirSchedule\Structs\VendorPrefs|null
     */
    public function getVendorPrefs()
    {
        return $this->VendorPrefs;
    }
    /**
     * Set VendorPrefs value
     * @param \Sabre\OTAAirSchedule\Structs\VendorPrefs $vendorPrefs
     * @return \Sabre\OTAAirSchedule\Structs\LegOne
     */
    public function setVendorPrefs(\Sabre\OTAAirSchedule\Structs\VendorPrefs $vendorPrefs = null)
    {
        $this->VendorPrefs = $vendorPrefs;
        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\OTAAirSchedule\Structs\LegOne
     */
    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__;
    }
}
