Api\StructType\ApiSearchRequest::setUILanguage PHP Method

setUILanguage() public method

Set UILanguage value
public setUILanguage ( string $uILanguage = null ) : ApiSearchRequest
$uILanguage string
return ApiSearchRequest
    public function setUILanguage($uILanguage = null)
    {
        // validation for constraint: string
        if (!is_null($uILanguage) && !is_string($uILanguage)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($uILanguage)), __LINE__);
        }
        $this->UILanguage = $uILanguage;
        return $this;
    }