<?php

declare(strict_types=1);

namespace Drupal\netforum\xWeb\Generated\StructType;

use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ListFromTable 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 ListFromTable extends AbstractStructBase
{
    /**
     * The lsf_from_table
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $lsf_from_table = null;
    /**
     * The lsf_from_alias
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $lsf_from_alias = null;
    /**
     * The lsf_from_join_type
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $lsf_from_join_type = null;
    /**
     * The lsf_from_join
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $lsf_from_join = null;
    /**
     * The Columns
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \Drupal\netforum\xWeb\Generated\ArrayType\ArrayOfColumn|null
     */
    protected ?\Drupal\netforum\xWeb\Generated\ArrayType\ArrayOfColumn $Columns = null;
    /**
     * Constructor method for ListFromTable
     * @uses ListFromTable::setLsf_from_table()
     * @uses ListFromTable::setLsf_from_alias()
     * @uses ListFromTable::setLsf_from_join_type()
     * @uses ListFromTable::setLsf_from_join()
     * @uses ListFromTable::setColumns()
     * @param string $lsf_from_table
     * @param string $lsf_from_alias
     * @param string $lsf_from_join_type
     * @param string $lsf_from_join
     * @param \Drupal\netforum\xWeb\Generated\ArrayType\ArrayOfColumn $columns
     */
    public function __construct(?string $lsf_from_table = null, ?string $lsf_from_alias = null, ?string $lsf_from_join_type = null, ?string $lsf_from_join = null, ?\Drupal\netforum\xWeb\Generated\ArrayType\ArrayOfColumn $columns = null)
    {
        $this
            ->setLsf_from_table($lsf_from_table)
            ->setLsf_from_alias($lsf_from_alias)
            ->setLsf_from_join_type($lsf_from_join_type)
            ->setLsf_from_join($lsf_from_join)
            ->setColumns($columns);
    }
    /**
     * Get lsf_from_table value
     * @return string|null
     */
    public function getLsf_from_table(): ?string
    {
        return $this->lsf_from_table;
    }
    /**
     * Set lsf_from_table value
     * @param string $lsf_from_table
     * @return \Drupal\netforum\xWeb\Generated\StructType\ListFromTable
     */
    public function setLsf_from_table(?string $lsf_from_table = null): self
    {
        // validation for constraint: string
        if (!is_null($lsf_from_table) && !is_string($lsf_from_table)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lsf_from_table, true), gettype($lsf_from_table)), __LINE__);
        }
        $this->lsf_from_table = $lsf_from_table;
        
        return $this;
    }
    /**
     * Get lsf_from_alias value
     * @return string|null
     */
    public function getLsf_from_alias(): ?string
    {
        return $this->lsf_from_alias;
    }
    /**
     * Set lsf_from_alias value
     * @param string $lsf_from_alias
     * @return \Drupal\netforum\xWeb\Generated\StructType\ListFromTable
     */
    public function setLsf_from_alias(?string $lsf_from_alias = null): self
    {
        // validation for constraint: string
        if (!is_null($lsf_from_alias) && !is_string($lsf_from_alias)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lsf_from_alias, true), gettype($lsf_from_alias)), __LINE__);
        }
        $this->lsf_from_alias = $lsf_from_alias;
        
        return $this;
    }
    /**
     * Get lsf_from_join_type value
     * @return string|null
     */
    public function getLsf_from_join_type(): ?string
    {
        return $this->lsf_from_join_type;
    }
    /**
     * Set lsf_from_join_type value
     * @param string $lsf_from_join_type
     * @return \Drupal\netforum\xWeb\Generated\StructType\ListFromTable
     */
    public function setLsf_from_join_type(?string $lsf_from_join_type = null): self
    {
        // validation for constraint: string
        if (!is_null($lsf_from_join_type) && !is_string($lsf_from_join_type)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lsf_from_join_type, true), gettype($lsf_from_join_type)), __LINE__);
        }
        $this->lsf_from_join_type = $lsf_from_join_type;
        
        return $this;
    }
    /**
     * Get lsf_from_join value
     * @return string|null
     */
    public function getLsf_from_join(): ?string
    {
        return $this->lsf_from_join;
    }
    /**
     * Set lsf_from_join value
     * @param string $lsf_from_join
     * @return \Drupal\netforum\xWeb\Generated\StructType\ListFromTable
     */
    public function setLsf_from_join(?string $lsf_from_join = null): self
    {
        // validation for constraint: string
        if (!is_null($lsf_from_join) && !is_string($lsf_from_join)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lsf_from_join, true), gettype($lsf_from_join)), __LINE__);
        }
        $this->lsf_from_join = $lsf_from_join;
        
        return $this;
    }
    /**
     * Get Columns value
     * @return \Drupal\netforum\xWeb\Generated\ArrayType\ArrayOfColumn|null
     */
    public function getColumns(): ?\Drupal\netforum\xWeb\Generated\ArrayType\ArrayOfColumn
    {
        return $this->Columns;
    }
    /**
     * Set Columns value
     * @param \Drupal\netforum\xWeb\Generated\ArrayType\ArrayOfColumn $columns
     * @return \Drupal\netforum\xWeb\Generated\StructType\ListFromTable
     */
    public function setColumns(?\Drupal\netforum\xWeb\Generated\ArrayType\ArrayOfColumn $columns = null): self
    {
        $this->Columns = $columns;
        
        return $this;
    }
}
