<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AlertCMethod2Linear StructType
 * @subpackage Structs
 */
class AlertCMethod2Linear extends AlertCLinear
{
    /**
     * The alertCDirection
     * @var \StructType\AlertCDirection
     */
    public $alertCDirection;
    /**
     * The alertCMethod2PrimaryPointLocation
     * @var \StructType\AlertCMethod2PrimaryPointLocation
     */
    public $alertCMethod2PrimaryPointLocation;
    /**
     * The alertCMethod2SecondaryPointLocation
     * @var \StructType\AlertCMethod2SecondaryPointLocation
     */
    public $alertCMethod2SecondaryPointLocation;
    /**
     * The alertCMethod2LinearExtension
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ExtensionType
     */
    public $alertCMethod2LinearExtension;
    /**
     * Constructor method for AlertCMethod2Linear
     * @uses AlertCMethod2Linear::setAlertCDirection()
     * @uses AlertCMethod2Linear::setAlertCMethod2PrimaryPointLocation()
     * @uses AlertCMethod2Linear::setAlertCMethod2SecondaryPointLocation()
     * @uses AlertCMethod2Linear::setAlertCMethod2LinearExtension()
     * @param \StructType\AlertCDirection $alertCDirection
     * @param \StructType\AlertCMethod2PrimaryPointLocation $alertCMethod2PrimaryPointLocation
     * @param \StructType\AlertCMethod2SecondaryPointLocation $alertCMethod2SecondaryPointLocation
     * @param \StructType\ExtensionType $alertCMethod2LinearExtension
     */
    public function __construct(\StructType\AlertCDirection $alertCDirection = null, \StructType\AlertCMethod2PrimaryPointLocation $alertCMethod2PrimaryPointLocation = null, \StructType\AlertCMethod2SecondaryPointLocation $alertCMethod2SecondaryPointLocation = null, \StructType\ExtensionType $alertCMethod2LinearExtension = null)
    {
        $this
            ->setAlertCDirection($alertCDirection)
            ->setAlertCMethod2PrimaryPointLocation($alertCMethod2PrimaryPointLocation)
            ->setAlertCMethod2SecondaryPointLocation($alertCMethod2SecondaryPointLocation)
            ->setAlertCMethod2LinearExtension($alertCMethod2LinearExtension);
    }
    /**
     * Get alertCDirection value
     * @return \StructType\AlertCDirection|null
     */
    public function getAlertCDirection()
    {
        return $this->alertCDirection;
    }
    /**
     * Set alertCDirection value
     * @param \StructType\AlertCDirection $alertCDirection
     * @return \StructType\AlertCMethod2Linear
     */
    public function setAlertCDirection(\StructType\AlertCDirection $alertCDirection = null)
    {
        $this->alertCDirection = $alertCDirection;
        return $this;
    }
    /**
     * Get alertCMethod2PrimaryPointLocation value
     * @return \StructType\AlertCMethod2PrimaryPointLocation|null
     */
    public function getAlertCMethod2PrimaryPointLocation()
    {
        return $this->alertCMethod2PrimaryPointLocation;
    }
    /**
     * Set alertCMethod2PrimaryPointLocation value
     * @param \StructType\AlertCMethod2PrimaryPointLocation $alertCMethod2PrimaryPointLocation
     * @return \StructType\AlertCMethod2Linear
     */
    public function setAlertCMethod2PrimaryPointLocation(\StructType\AlertCMethod2PrimaryPointLocation $alertCMethod2PrimaryPointLocation = null)
    {
        $this->alertCMethod2PrimaryPointLocation = $alertCMethod2PrimaryPointLocation;
        return $this;
    }
    /**
     * Get alertCMethod2SecondaryPointLocation value
     * @return \StructType\AlertCMethod2SecondaryPointLocation|null
     */
    public function getAlertCMethod2SecondaryPointLocation()
    {
        return $this->alertCMethod2SecondaryPointLocation;
    }
    /**
     * Set alertCMethod2SecondaryPointLocation value
     * @param \StructType\AlertCMethod2SecondaryPointLocation $alertCMethod2SecondaryPointLocation
     * @return \StructType\AlertCMethod2Linear
     */
    public function setAlertCMethod2SecondaryPointLocation(\StructType\AlertCMethod2SecondaryPointLocation $alertCMethod2SecondaryPointLocation = null)
    {
        $this->alertCMethod2SecondaryPointLocation = $alertCMethod2SecondaryPointLocation;
        return $this;
    }
    /**
     * Get alertCMethod2LinearExtension value
     * @return \StructType\ExtensionType|null
     */
    public function getAlertCMethod2LinearExtension()
    {
        return $this->alertCMethod2LinearExtension;
    }
    /**
     * Set alertCMethod2LinearExtension value
     * @param \StructType\ExtensionType $alertCMethod2LinearExtension
     * @return \StructType\AlertCMethod2Linear
     */
    public function setAlertCMethod2LinearExtension(\StructType\ExtensionType $alertCMethod2LinearExtension = null)
    {
        $this->alertCMethod2LinearExtension = $alertCMethod2LinearExtension;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \StructType\AlertCMethod2Linear
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
