<?php

declare(strict_types=1);

namespace Drupal\netforum\xWeb\Generated\StructType;

use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for WEBWebUserLogin_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 WEBWebUserLogin_CustomResponse extends AbstractStructBase
{
    /**
     * The WEBWebUserLogin_CustomResult
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $WEBWebUserLogin_CustomResult = null;
    /**
     * Constructor method for WEBWebUserLogin_CustomResponse
     * @uses WEBWebUserLogin_CustomResponse::setWEBWebUserLogin_CustomResult()
     * @param string $wEBWebUserLogin_CustomResult
     */
    public function __construct(?string $wEBWebUserLogin_CustomResult = null)
    {
        $this
            ->setWEBWebUserLogin_CustomResult($wEBWebUserLogin_CustomResult);
    }
    /**
     * Get WEBWebUserLogin_CustomResult value
     * @return string|null
     */
    public function getWEBWebUserLogin_CustomResult(): ?string
    {
        return $this->WEBWebUserLogin_CustomResult;
    }
    /**
     * Set WEBWebUserLogin_CustomResult value
     * @param string $wEBWebUserLogin_CustomResult
     * @return \Drupal\netforum\xWeb\Generated\StructType\WEBWebUserLogin_CustomResponse
     */
    public function setWEBWebUserLogin_CustomResult(?string $wEBWebUserLogin_CustomResult = null): self
    {
        // validation for constraint: string
        if (!is_null($wEBWebUserLogin_CustomResult) && !is_string($wEBWebUserLogin_CustomResult)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($wEBWebUserLogin_CustomResult, true), gettype($wEBWebUserLogin_CustomResult)), __LINE__);
        }
        $this->WEBWebUserLogin_CustomResult = $wEBWebUserLogin_CustomResult;
        
        return $this;
    }
}
