<?php

namespace App\Services;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for serverVersionResponse StructType
 * @subpackage Structs
 */
class ServerVersionResponse extends AbstractStructBase
{
    /**
     * The serverVersionResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $serverVersionResult;
    /**
     * Constructor method for serverVersionResponse
     * @uses ServerVersionResponse::setServerVersionResult()
     * @param string $serverVersionResult
     */
    public function __construct($serverVersionResult = null)
    {
        $this
            ->setServerVersionResult($serverVersionResult);
    }
    /**
     * Get serverVersionResult value
     * @return string|null
     */
    public function getServerVersionResult()
    {
        return $this->serverVersionResult;
    }
    /**
     * Set serverVersionResult value
     * @param string $serverVersionResult
     * @return \App\Services\ServerVersionResponse
     */
    public function setServerVersionResult($serverVersionResult = null)
    {
        // validation for constraint: string
        if (!is_null($serverVersionResult) && !is_string($serverVersionResult)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($serverVersionResult, true), gettype($serverVersionResult)), __LINE__);
        }
        $this->serverVersionResult = $serverVersionResult;
        return $this;
    }
}
