<?php

namespace Sabre\OTAPing\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for OperationTimes Structs
 * Meta informations extracted from the WSDL
 * - documentation: A collection of OperationTimes.
 * @subpackage Structs
 */
class OperationTimes extends AbstractStructBase
{
    /**
     * The OperationTime
     * Meta informations extracted from the WSDL
     * - maxOccurs: 999
     * @var \Sabre\OTAPing\Structs\OperationTime[]
     */
    public $OperationTime;
    /**
     * Constructor method for OperationTimes
     * @uses OperationTimes::setOperationTime()
     * @param \Sabre\OTAPing\Structs\OperationTime[] $operationTime
     */
    public function __construct(array $operationTime = array())
    {
        $this
            ->setOperationTime($operationTime);
    }
    /**
     * Get OperationTime value
     * @return \Sabre\OTAPing\Structs\OperationTime[]|null
     */
    public function getOperationTime()
    {
        return $this->OperationTime;
    }
    /**
     * Set OperationTime value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAPing\Structs\OperationTime[] $operationTime
     * @return \Sabre\OTAPing\Structs\OperationTimes
     */
    public function setOperationTime(array $operationTime = array())
    {
        $this->OperationTime = $operationTime;
        return $this;
    }
    /**
     * Add item to OperationTime value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAPing\Structs\OperationTime $item
     * @return \Sabre\OTAPing\Structs\OperationTimes
     */
    public function addToOperationTime(\Sabre\OTAPing\Structs\OperationTime $item)
    {
        $this->OperationTime[] = $item;
        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\OTAPing\Structs\OperationTimes
     */
    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__;
    }
}
