<?php

declare(strict_types=1);

namespace Drupal\netforum\xWeb\Generated\StructType;

use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for WEBWebUserLoginByRecno_CustomResponse StructType
 * @subpackage Structs
 * @author Drupal NetForum xWeb PHP SDK Generator
 * @version 1.0.0
 * @license GPL-2.0-or-later https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * @see https://www.drupal.org/project/netforum
 * @generatedDate 2025-08-05
 * @generatedRelease Official
 * @generatedNetForumVersion 37
 */
#[\AllowDynamicProperties]
class WEBWebUserLoginByRecno_CustomResponse extends AbstractStructBase
{
    /**
     * The WEBWebUserLoginByRecno_CustomResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $WEBWebUserLoginByRecno_CustomResult = null;
    /**
     * Constructor method for WEBWebUserLoginByRecno_CustomResponse
     * @uses WEBWebUserLoginByRecno_CustomResponse::setWEBWebUserLoginByRecno_CustomResult()
     * @param string $wEBWebUserLoginByRecno_CustomResult
     */
    public function __construct(?string $wEBWebUserLoginByRecno_CustomResult = null)
    {
        $this
            ->setWEBWebUserLoginByRecno_CustomResult($wEBWebUserLoginByRecno_CustomResult);
    }
    /**
     * Get WEBWebUserLoginByRecno_CustomResult value
     * @return string|null
     */
    public function getWEBWebUserLoginByRecno_CustomResult(): ?string
    {
        return $this->WEBWebUserLoginByRecno_CustomResult;
    }
    /**
     * Set WEBWebUserLoginByRecno_CustomResult value
     * @param string $wEBWebUserLoginByRecno_CustomResult
     * @return \Drupal\netforum\xWeb\Generated\StructType\WEBWebUserLoginByRecno_CustomResponse
     */
    public function setWEBWebUserLoginByRecno_CustomResult(?string $wEBWebUserLoginByRecno_CustomResult = null): self
    {
        // validation for constraint: string
        if (!is_null($wEBWebUserLoginByRecno_CustomResult) && !is_string($wEBWebUserLoginByRecno_CustomResult)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($wEBWebUserLoginByRecno_CustomResult, true), gettype($wEBWebUserLoginByRecno_CustomResult)), __LINE__);
        }
        $this->WEBWebUserLoginByRecno_CustomResult = $wEBWebUserLoginByRecno_CustomResult;
        
        return $this;
    }
}
