<?php

namespace CustomerManagement\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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