<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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