<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for NextStopResult_V4 StructType
 * @subpackage Structs
 */
class NextStopResult_V4 extends NextStopResult_V3
{
    /**
     * The EstimatedTimeOfArrivalRestIncluded
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: true
     * @var string
     */
    public $EstimatedTimeOfArrivalRestIncluded;
    /**
     * Constructor method for NextStopResult_V4
     * @uses NextStopResult_V4::setEstimatedTimeOfArrivalRestIncluded()
     * @param string $estimatedTimeOfArrivalRestIncluded
     */
    public function __construct($estimatedTimeOfArrivalRestIncluded = null)
    {
        $this
            ->setEstimatedTimeOfArrivalRestIncluded($estimatedTimeOfArrivalRestIncluded);
    }
    /**
     * Get EstimatedTimeOfArrivalRestIncluded value
     * @return string
     */
    public function getEstimatedTimeOfArrivalRestIncluded()
    {
        return $this->EstimatedTimeOfArrivalRestIncluded;
    }
    /**
     * Set EstimatedTimeOfArrivalRestIncluded value
     * @param string $estimatedTimeOfArrivalRestIncluded
     * @return \StructType\NextStopResult_V4
     */
    public function setEstimatedTimeOfArrivalRestIncluded($estimatedTimeOfArrivalRestIncluded = null)
    {
        // validation for constraint: string
        if (!is_null($estimatedTimeOfArrivalRestIncluded) && !is_string($estimatedTimeOfArrivalRestIncluded)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($estimatedTimeOfArrivalRestIncluded, true), gettype($estimatedTimeOfArrivalRestIncluded)), __LINE__);
        }
        $this->EstimatedTimeOfArrivalRestIncluded = $estimatedTimeOfArrivalRestIncluded;
        return $this;
    }
}
