<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AlertCMethod2PrimaryPointLocation StructType
 * @subpackage Structs
 */
class AlertCMethod2PrimaryPointLocation extends AbstractStructBase
{
    /**
     * The alertCLocation
     * @var \StructType\AlertCLocation
     */
    public $alertCLocation;
    /**
     * The alertCMethod2PrimaryPointLocationExtension
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ExtensionType
     */
    public $alertCMethod2PrimaryPointLocationExtension;
    /**
     * Constructor method for AlertCMethod2PrimaryPointLocation
     * @uses AlertCMethod2PrimaryPointLocation::setAlertCLocation()
     * @uses AlertCMethod2PrimaryPointLocation::setAlertCMethod2PrimaryPointLocationExtension()
     * @param \StructType\AlertCLocation $alertCLocation
     * @param \StructType\ExtensionType $alertCMethod2PrimaryPointLocationExtension
     */
    public function __construct(\StructType\AlertCLocation $alertCLocation = null, \StructType\ExtensionType $alertCMethod2PrimaryPointLocationExtension = null)
    {
        $this
            ->setAlertCLocation($alertCLocation)
            ->setAlertCMethod2PrimaryPointLocationExtension($alertCMethod2PrimaryPointLocationExtension);
    }
    /**
     * Get alertCLocation value
     * @return \StructType\AlertCLocation|null
     */
    public function getAlertCLocation()
    {
        return $this->alertCLocation;
    }
    /**
     * Set alertCLocation value
     * @param \StructType\AlertCLocation $alertCLocation
     * @return \StructType\AlertCMethod2PrimaryPointLocation
     */
    public function setAlertCLocation(\StructType\AlertCLocation $alertCLocation = null)
    {
        $this->alertCLocation = $alertCLocation;
        return $this;
    }
    /**
     * Get alertCMethod2PrimaryPointLocationExtension value
     * @return \StructType\ExtensionType|null
     */
    public function getAlertCMethod2PrimaryPointLocationExtension()
    {
        return $this->alertCMethod2PrimaryPointLocationExtension;
    }
    /**
     * Set alertCMethod2PrimaryPointLocationExtension value
     * @param \StructType\ExtensionType $alertCMethod2PrimaryPointLocationExtension
     * @return \StructType\AlertCMethod2PrimaryPointLocation
     */
    public function setAlertCMethod2PrimaryPointLocationExtension(\StructType\ExtensionType $alertCMethod2PrimaryPointLocationExtension = null)
    {
        $this->alertCMethod2PrimaryPointLocationExtension = $alertCMethod2PrimaryPointLocationExtension;
        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\AlertCMethod2PrimaryPointLocation
     */
    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__;
    }
}
