<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for NextStopPosition StructType
 * @subpackage Structs
 */
class NextStopPosition extends Position
{
    /**
     * The StreetInfo
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\NextStopStreetInfo
     */
    public $StreetInfo;
    /**
     * Constructor method for NextStopPosition
     * @uses NextStopPosition::setStreetInfo()
     * @param \StructType\NextStopStreetInfo $streetInfo
     */
    public function __construct(\StructType\NextStopStreetInfo $streetInfo = null)
    {
        $this
            ->setStreetInfo($streetInfo);
    }
    /**
     * Get StreetInfo value
     * @return \StructType\NextStopStreetInfo|null
     */
    public function getStreetInfo()
    {
        return $this->StreetInfo;
    }
    /**
     * Set StreetInfo value
     * @param \StructType\NextStopStreetInfo $streetInfo
     * @return \StructType\NextStopPosition
     */
    public function setStreetInfo(\StructType\NextStopStreetInfo $streetInfo = null)
    {
        $this->StreetInfo = $streetInfo;
        return $this;
    }
}
