<?php

namespace Sabre\OTAAirSchedule\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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