<?php

namespace Sabre\OTAAirSchedule\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ConnectTimeOverrides Structs
 * @subpackage Structs
 */
class ConnectTimeOverrides extends AbstractStructBase
{
    /**
     * The Min
     * Meta informations extracted from the WSDL
     * - use: required
     * @var string
     */
    public $Min;
    /**
     * The Max
     * Meta informations extracted from the WSDL
     * - use: optional
     * @var string
     */
    public $Max;
    /**
     * Constructor method for ConnectTimeOverrides
     * @uses ConnectTimeOverrides::setMin()
     * @uses ConnectTimeOverrides::setMax()
     * @param string $min
     * @param string $max
     */
    public function __construct($min = null, $max = null)
    {
        $this
            ->setMin($min)
            ->setMax($max);
    }
    /**
     * Get Min value
     * @return string
     */
    public function getMin()
    {
        return $this->Min;
    }
    /**
     * Set Min value
     * @param string $min
     * @return \Sabre\OTAAirSchedule\Structs\ConnectTimeOverrides
     */
    public function setMin($min = null)
    {
        $this->Min = $min;
        return $this;
    }
    /**
     * Get Max value
     * @return string|null
     */
    public function getMax()
    {
        return $this->Max;
    }
    /**
     * Set Max value
     * @param string $max
     * @return \Sabre\OTAAirSchedule\Structs\ConnectTimeOverrides
     */
    public function setMax($max = null)
    {
        $this->Max = $max;
        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\ConnectTimeOverrides
     */
    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__;
    }
}
