<?php

namespace Straxus\FarfetchSDK\Model;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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