<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GeoZoneStrategy StructType
 * @subpackage Structs
 */
class GeoZoneStrategy extends AbstractStructBase
{
    /**
     * The GeoZoneTransicsId
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $GeoZoneTransicsId;
    /**
     * The Name
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $Name;
    /**
     * The DriverAlarmText
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $DriverAlarmText;
    /**
     * Constructor method for GeoZoneStrategy
     * @uses GeoZoneStrategy::setGeoZoneTransicsId()
     * @uses GeoZoneStrategy::setName()
     * @uses GeoZoneStrategy::setDriverAlarmText()
     * @param int $geoZoneTransicsId
     * @param string $name
     * @param string $driverAlarmText
     */
    public function __construct($geoZoneTransicsId = null, $name = null, $driverAlarmText = null)
    {
        $this
            ->setGeoZoneTransicsId($geoZoneTransicsId)
            ->setName($name)
            ->setDriverAlarmText($driverAlarmText);
    }
    /**
     * Get GeoZoneTransicsId value
     * @return int
     */
    public function getGeoZoneTransicsId()
    {
        return $this->GeoZoneTransicsId;
    }
    /**
     * Set GeoZoneTransicsId value
     * @param int $geoZoneTransicsId
     * @return \StructType\GeoZoneStrategy
     */
    public function setGeoZoneTransicsId($geoZoneTransicsId = null)
    {
        // validation for constraint: int
        if (!is_null($geoZoneTransicsId) && !(is_int($geoZoneTransicsId) || ctype_digit($geoZoneTransicsId))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($geoZoneTransicsId, true), gettype($geoZoneTransicsId)), __LINE__);
        }
        $this->GeoZoneTransicsId = $geoZoneTransicsId;
        return $this;
    }
    /**
     * Get Name value
     * @return string|null
     */
    public function getName()
    {
        return $this->Name;
    }
    /**
     * Set Name value
     * @param string $name
     * @return \StructType\GeoZoneStrategy
     */
    public function setName($name = null)
    {
        // validation for constraint: string
        if (!is_null($name) && !is_string($name)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name, true), gettype($name)), __LINE__);
        }
        $this->Name = $name;
        return $this;
    }
    /**
     * Get DriverAlarmText value
     * @return string|null
     */
    public function getDriverAlarmText()
    {
        return $this->DriverAlarmText;
    }
    /**
     * Set DriverAlarmText value
     * @param string $driverAlarmText
     * @return \StructType\GeoZoneStrategy
     */
    public function setDriverAlarmText($driverAlarmText = null)
    {
        // validation for constraint: string
        if (!is_null($driverAlarmText) && !is_string($driverAlarmText)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($driverAlarmText, true), gettype($driverAlarmText)), __LINE__);
        }
        $this->DriverAlarmText = $driverAlarmText;
        return $this;
    }
}
