<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AlertCMethod2Point StructType
 * @subpackage Structs
 */
class AlertCMethod2Point extends AlertCPoint
{
    /**
     * The alertCDirection
     * @var \StructType\AlertCDirection
     */
    public $alertCDirection;
    /**
     * The alertCMethod2PrimaryPointLocation
     * @var \StructType\AlertCMethod2PrimaryPointLocation
     */
    public $alertCMethod2PrimaryPointLocation;
    /**
     * The alertCMethod2PointExtension
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ExtensionType
     */
    public $alertCMethod2PointExtension;
    /**
     * Constructor method for AlertCMethod2Point
     * @uses AlertCMethod2Point::setAlertCDirection()
     * @uses AlertCMethod2Point::setAlertCMethod2PrimaryPointLocation()
     * @uses AlertCMethod2Point::setAlertCMethod2PointExtension()
     * @param \StructType\AlertCDirection $alertCDirection
     * @param \StructType\AlertCMethod2PrimaryPointLocation $alertCMethod2PrimaryPointLocation
     * @param \StructType\ExtensionType $alertCMethod2PointExtension
     */
    public function __construct(\StructType\AlertCDirection $alertCDirection = null, \StructType\AlertCMethod2PrimaryPointLocation $alertCMethod2PrimaryPointLocation = null, \StructType\ExtensionType $alertCMethod2PointExtension = null)
    {
        $this
            ->setAlertCDirection($alertCDirection)
            ->setAlertCMethod2PrimaryPointLocation($alertCMethod2PrimaryPointLocation)
            ->setAlertCMethod2PointExtension($alertCMethod2PointExtension);
    }
    /**
     * Get alertCDirection value
     * @return \StructType\AlertCDirection|null
     */
    public function getAlertCDirection()
    {
        return $this->alertCDirection;
    }
    /**
     * Set alertCDirection value
     * @param \StructType\AlertCDirection $alertCDirection
     * @return \StructType\AlertCMethod2Point
     */
    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\AlertCMethod2Point
     */
    public function setAlertCMethod2PrimaryPointLocation(\StructType\AlertCMethod2PrimaryPointLocation $alertCMethod2PrimaryPointLocation = null)
    {
        $this->alertCMethod2PrimaryPointLocation = $alertCMethod2PrimaryPointLocation;
        return $this;
    }
    /**
     * Get alertCMethod2PointExtension value
     * @return \StructType\ExtensionType|null
     */
    public function getAlertCMethod2PointExtension()
    {
        return $this->alertCMethod2PointExtension;
    }
    /**
     * Set alertCMethod2PointExtension value
     * @param \StructType\ExtensionType $alertCMethod2PointExtension
     * @return \StructType\AlertCMethod2Point
     */
    public function setAlertCMethod2PointExtension(\StructType\ExtensionType $alertCMethod2PointExtension = null)
    {
        $this->alertCMethod2PointExtension = $alertCMethod2PointExtension;
        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\AlertCMethod2Point
     */
    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__;
    }
}
