<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for TpegIlcPointDescriptor StructType
 * @subpackage Structs
 */
class TpegIlcPointDescriptor extends TpegPointDescriptor
{
    /**
     * The tpegIlcPointDescriptorType
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var string
     */
    public $tpegIlcPointDescriptorType;
    /**
     * The tpegIlcPointDescriptorExtension
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ExtensionType
     */
    public $tpegIlcPointDescriptorExtension;
    /**
     * Constructor method for TpegIlcPointDescriptor
     * @uses TpegIlcPointDescriptor::setTpegIlcPointDescriptorType()
     * @uses TpegIlcPointDescriptor::setTpegIlcPointDescriptorExtension()
     * @param string $tpegIlcPointDescriptorType
     * @param \StructType\ExtensionType $tpegIlcPointDescriptorExtension
     */
    public function __construct($tpegIlcPointDescriptorType = null, \StructType\ExtensionType $tpegIlcPointDescriptorExtension = null)
    {
        $this
            ->setTpegIlcPointDescriptorType($tpegIlcPointDescriptorType)
            ->setTpegIlcPointDescriptorExtension($tpegIlcPointDescriptorExtension);
    }
    /**
     * Get tpegIlcPointDescriptorType value
     * @return string
     */
    public function getTpegIlcPointDescriptorType()
    {
        return $this->tpegIlcPointDescriptorType;
    }
    /**
     * Set tpegIlcPointDescriptorType value
     * @uses \EnumType\TpegLoc03IlcPointDescriptorSubtypeEnum::valueIsValid()
     * @uses \EnumType\TpegLoc03IlcPointDescriptorSubtypeEnum::getValidValues()
     * @throws \InvalidArgumentException
     * @param string $tpegIlcPointDescriptorType
     * @return \StructType\TpegIlcPointDescriptor
     */
    public function setTpegIlcPointDescriptorType($tpegIlcPointDescriptorType = null)
    {
        // validation for constraint: enumeration
        if (!\EnumType\TpegLoc03IlcPointDescriptorSubtypeEnum::valueIsValid($tpegIlcPointDescriptorType)) {
            throw new \InvalidArgumentException(sprintf('Value "%s" is invalid, please use one of: %s', $tpegIlcPointDescriptorType, implode(', ', \EnumType\TpegLoc03IlcPointDescriptorSubtypeEnum::getValidValues())), __LINE__);
        }
        $this->tpegIlcPointDescriptorType = $tpegIlcPointDescriptorType;
        return $this;
    }
    /**
     * Get tpegIlcPointDescriptorExtension value
     * @return \StructType\ExtensionType|null
     */
    public function getTpegIlcPointDescriptorExtension()
    {
        return $this->tpegIlcPointDescriptorExtension;
    }
    /**
     * Set tpegIlcPointDescriptorExtension value
     * @param \StructType\ExtensionType $tpegIlcPointDescriptorExtension
     * @return \StructType\TpegIlcPointDescriptor
     */
    public function setTpegIlcPointDescriptorExtension(\StructType\ExtensionType $tpegIlcPointDescriptorExtension = null)
    {
        $this->tpegIlcPointDescriptorExtension = $tpegIlcPointDescriptorExtension;
        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\TpegIlcPointDescriptor
     */
    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__;
    }
}
