<?php

declare(strict_types=1);

namespace Drupal\netforum\xWeb\Generated\StructType;

use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for QueryColumn 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 QueryColumn extends AbstractStructBase
{
    /**
     * The Name
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $Name = null;
    /**
     * The Description
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $Description = null;
    /**
     * The DataType
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $DataType = null;
    /**
     * The TableAlias
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $TableAlias = null;
    /**
     * The TableDescription
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $TableDescription = null;
    /**
     * The TableName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $TableName = null;
    /**
     * Constructor method for QueryColumn
     * @uses QueryColumn::setName()
     * @uses QueryColumn::setDescription()
     * @uses QueryColumn::setDataType()
     * @uses QueryColumn::setTableAlias()
     * @uses QueryColumn::setTableDescription()
     * @uses QueryColumn::setTableName()
     * @param string $name
     * @param string $description
     * @param string $dataType
     * @param string $tableAlias
     * @param string $tableDescription
     * @param string $tableName
     */
    public function __construct(?string $name = null, ?string $description = null, ?string $dataType = null, ?string $tableAlias = null, ?string $tableDescription = null, ?string $tableName = null)
    {
        $this
            ->setName($name)
            ->setDescription($description)
            ->setDataType($dataType)
            ->setTableAlias($tableAlias)
            ->setTableDescription($tableDescription)
            ->setTableName($tableName);
    }
    /**
     * Get Name value
     * @return string|null
     */
    public function getName(): ?string
    {
        return $this->Name;
    }
    /**
     * Set Name value
     * @param string $name
     * @return \Drupal\netforum\xWeb\Generated\StructType\QueryColumn
     */
    public function setName(?string $name = null): self
    {
        // validation for constraint: string
        if (!is_null($name) && !is_string($name)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name, true), gettype($name)), __LINE__);
        }
        $this->Name = $name;
        
        return $this;
    }
    /**
     * Get Description value
     * @return string|null
     */
    public function getDescription(): ?string
    {
        return $this->Description;
    }
    /**
     * Set Description value
     * @param string $description
     * @return \Drupal\netforum\xWeb\Generated\StructType\QueryColumn
     */
    public function setDescription(?string $description = null): self
    {
        // validation for constraint: string
        if (!is_null($description) && !is_string($description)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($description, true), gettype($description)), __LINE__);
        }
        $this->Description = $description;
        
        return $this;
    }
    /**
     * Get DataType value
     * @return string|null
     */
    public function getDataType(): ?string
    {
        return $this->DataType;
    }
    /**
     * Set DataType value
     * @param string $dataType
     * @return \Drupal\netforum\xWeb\Generated\StructType\QueryColumn
     */
    public function setDataType(?string $dataType = null): self
    {
        // validation for constraint: string
        if (!is_null($dataType) && !is_string($dataType)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($dataType, true), gettype($dataType)), __LINE__);
        }
        $this->DataType = $dataType;
        
        return $this;
    }
    /**
     * Get TableAlias value
     * @return string|null
     */
    public function getTableAlias(): ?string
    {
        return $this->TableAlias;
    }
    /**
     * Set TableAlias value
     * @param string $tableAlias
     * @return \Drupal\netforum\xWeb\Generated\StructType\QueryColumn
     */
    public function setTableAlias(?string $tableAlias = null): self
    {
        // validation for constraint: string
        if (!is_null($tableAlias) && !is_string($tableAlias)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($tableAlias, true), gettype($tableAlias)), __LINE__);
        }
        $this->TableAlias = $tableAlias;
        
        return $this;
    }
    /**
     * Get TableDescription value
     * @return string|null
     */
    public function getTableDescription(): ?string
    {
        return $this->TableDescription;
    }
    /**
     * Set TableDescription value
     * @param string $tableDescription
     * @return \Drupal\netforum\xWeb\Generated\StructType\QueryColumn
     */
    public function setTableDescription(?string $tableDescription = null): self
    {
        // validation for constraint: string
        if (!is_null($tableDescription) && !is_string($tableDescription)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($tableDescription, true), gettype($tableDescription)), __LINE__);
        }
        $this->TableDescription = $tableDescription;
        
        return $this;
    }
    /**
     * Get TableName value
     * @return string|null
     */
    public function getTableName(): ?string
    {
        return $this->TableName;
    }
    /**
     * Set TableName value
     * @param string $tableName
     * @return \Drupal\netforum\xWeb\Generated\StructType\QueryColumn
     */
    public function setTableName(?string $tableName = null): self
    {
        // validation for constraint: string
        if (!is_null($tableName) && !is_string($tableName)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($tableName, true), gettype($tableName)), __LINE__);
        }
        $this->TableName = $tableName;
        
        return $this;
    }
}
