<?php

namespace Sabre\OTAAirSchedule\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for OperationSchedule Structs
 * @subpackage Structs
 */
class OperationSchedule extends AbstractStructBase
{
    /**
     * The OperationTimes
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \Sabre\OTAAirSchedule\Structs\OperationTimes
     */
    public $OperationTimes;
    /**
     * Constructor method for OperationSchedule
     * @uses OperationSchedule::setOperationTimes()
     * @param \Sabre\OTAAirSchedule\Structs\OperationTimes $operationTimes
     */
    public function __construct(\Sabre\OTAAirSchedule\Structs\OperationTimes $operationTimes = null)
    {
        $this
            ->setOperationTimes($operationTimes);
    }
    /**
     * Get OperationTimes value
     * @return \Sabre\OTAAirSchedule\Structs\OperationTimes|null
     */
    public function getOperationTimes()
    {
        return $this->OperationTimes;
    }
    /**
     * Set OperationTimes value
     * @param \Sabre\OTAAirSchedule\Structs\OperationTimes $operationTimes
     * @return \Sabre\OTAAirSchedule\Structs\OperationSchedule
     */
    public function setOperationTimes(\Sabre\OTAAirSchedule\Structs\OperationTimes $operationTimes = null)
    {
        $this->OperationTimes = $operationTimes;
        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\OperationSchedule
     */
    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__;
    }
}
