<?php

namespace CustomerManagement\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for TerminateModem_v2Response StructType
 * @subpackage Structs
 */
class TerminateModem_v2Response extends AbstractStructBase
{
    /**
     * The TerminateModem_v2Result
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var string
     */
    public $TerminateModem_v2Result;
    /**
     * Constructor method for TerminateModem_v2Response
     * @uses TerminateModem_v2Response::setTerminateModem_v2Result()
     * @param string $terminateModem_v2Result
     */
    public function __construct($terminateModem_v2Result = null)
    {
        $this
            ->setTerminateModem_v2Result($terminateModem_v2Result);
    }
    /**
     * Get TerminateModem_v2Result value
     * @return string
     */
    public function getTerminateModem_v2Result()
    {
        return $this->TerminateModem_v2Result;
    }
    /**
     * Set TerminateModem_v2Result value
     * @uses \CustomerManagement\EnumType\TerminateModemOutput::valueIsValid()
     * @uses \CustomerManagement\EnumType\TerminateModemOutput::getValidValues()
     * @throws \InvalidArgumentException
     * @param string $terminateModem_v2Result
     * @return \CustomerManagement\StructType\TerminateModem_v2Response
     */
    public function setTerminateModem_v2Result($terminateModem_v2Result = null)
    {
        // validation for constraint: enumeration
        if (!\CustomerManagement\EnumType\TerminateModemOutput::valueIsValid($terminateModem_v2Result)) {
            throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \CustomerManagement\EnumType\TerminateModemOutput', is_array($terminateModem_v2Result) ? implode(', ', $terminateModem_v2Result) : var_export($terminateModem_v2Result, true), implode(', ', \CustomerManagement\EnumType\TerminateModemOutput::getValidValues())), __LINE__);
        }
        $this->TerminateModem_v2Result = $terminateModem_v2Result;
        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 \CustomerManagement\StructType\TerminateModem_v2Response
     */
    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__;
    }
}
