<?php

namespace CustomerManagement\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetModemSerialFromIccidResponse StructType
 * @subpackage Structs
 */
class GetModemSerialFromIccidResponse extends AbstractStructBase
{
    /**
     * The GetModemSerialFromIccidResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $GetModemSerialFromIccidResult;
    /**
     * Constructor method for GetModemSerialFromIccidResponse
     * @uses GetModemSerialFromIccidResponse::setGetModemSerialFromIccidResult()
     * @param string $getModemSerialFromIccidResult
     */
    public function __construct($getModemSerialFromIccidResult = null)
    {
        $this
            ->setGetModemSerialFromIccidResult($getModemSerialFromIccidResult);
    }
    /**
     * Get GetModemSerialFromIccidResult value
     * @return string|null
     */
    public function getGetModemSerialFromIccidResult()
    {
        return $this->GetModemSerialFromIccidResult;
    }
    /**
     * Set GetModemSerialFromIccidResult value
     * @param string $getModemSerialFromIccidResult
     * @return \CustomerManagement\StructType\GetModemSerialFromIccidResponse
     */
    public function setGetModemSerialFromIccidResult($getModemSerialFromIccidResult = null)
    {
        // validation for constraint: string
        if (!is_null($getModemSerialFromIccidResult) && !is_string($getModemSerialFromIccidResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($getModemSerialFromIccidResult, true), gettype($getModemSerialFromIccidResult)), __LINE__);
        }
        $this->GetModemSerialFromIccidResult = $getModemSerialFromIccidResult;
        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\GetModemSerialFromIccidResponse
     */
    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__;
    }
}
