<?php

namespace CustomerManagement\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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