<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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