<?php

namespace ServicePyramid\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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