<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for
 * BizAction.Foundation.ConfigureValueGettersRelevancy.RequestItem StructType
 * @subpackage Structs
 */
class BizAction_Foundation_ConfigureValueGettersRelevancy_RequestItem extends AnyEntity
{
    /**
     * The Description
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Description;
    /**
     * The IsRelevant
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var bool
     */
    public $IsRelevant;
    /**
     * The Title
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Title;
    /**
     * The ValueGetterName
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $ValueGetterName;
    /**
     * Constructor method for
     * BizAction.Foundation.ConfigureValueGettersRelevancy.RequestItem
     * @uses BizAction_Foundation_ConfigureValueGettersRelevancy_RequestItem::setDescription()
     * @uses BizAction_Foundation_ConfigureValueGettersRelevancy_RequestItem::setIsRelevant()
     * @uses BizAction_Foundation_ConfigureValueGettersRelevancy_RequestItem::setTitle()
     * @uses BizAction_Foundation_ConfigureValueGettersRelevancy_RequestItem::setValueGetterName()
     * @param string $description
     * @param bool $isRelevant
     * @param string $title
     * @param string $valueGetterName
     */
    public function __construct($description = null, $isRelevant = null, $title = null, $valueGetterName = null)
    {
        $this
            ->setDescription($description)
            ->setIsRelevant($isRelevant)
            ->setTitle($title)
            ->setValueGetterName($valueGetterName);
    }
    /**
     * Get Description value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getDescription()
    {
        return isset($this->Description) ? $this->Description : null;
    }
    /**
     * Set Description value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $description
     * @return \patest\StructType\BizAction_Foundation_ConfigureValueGettersRelevancy_RequestItem
     */
    public function setDescription($description = null)
    {
        // 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__);
        }
        if (is_null($description) || (is_array($description) && empty($description))) {
            unset($this->Description);
        } else {
            $this->Description = $description;
        }
        return $this;
    }
    /**
     * Get IsRelevant value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return bool|null
     */
    public function getIsRelevant()
    {
        return isset($this->IsRelevant) ? $this->IsRelevant : null;
    }
    /**
     * Set IsRelevant value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param bool $isRelevant
     * @return \patest\StructType\BizAction_Foundation_ConfigureValueGettersRelevancy_RequestItem
     */
    public function setIsRelevant($isRelevant = null)
    {
        // validation for constraint: boolean
        if (!is_null($isRelevant) && !is_bool($isRelevant)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isRelevant, true), gettype($isRelevant)), __LINE__);
        }
        if (is_null($isRelevant) || (is_array($isRelevant) && empty($isRelevant))) {
            unset($this->IsRelevant);
        } else {
            $this->IsRelevant = $isRelevant;
        }
        return $this;
    }
    /**
     * Get Title value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getTitle()
    {
        return isset($this->Title) ? $this->Title : null;
    }
    /**
     * Set Title value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $title
     * @return \patest\StructType\BizAction_Foundation_ConfigureValueGettersRelevancy_RequestItem
     */
    public function setTitle($title = null)
    {
        // validation for constraint: string
        if (!is_null($title) && !is_string($title)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($title, true), gettype($title)), __LINE__);
        }
        if (is_null($title) || (is_array($title) && empty($title))) {
            unset($this->Title);
        } else {
            $this->Title = $title;
        }
        return $this;
    }
    /**
     * Get ValueGetterName value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getValueGetterName()
    {
        return isset($this->ValueGetterName) ? $this->ValueGetterName : null;
    }
    /**
     * Set ValueGetterName value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $valueGetterName
     * @return \patest\StructType\BizAction_Foundation_ConfigureValueGettersRelevancy_RequestItem
     */
    public function setValueGetterName($valueGetterName = null)
    {
        // validation for constraint: string
        if (!is_null($valueGetterName) && !is_string($valueGetterName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($valueGetterName, true), gettype($valueGetterName)), __LINE__);
        }
        if (is_null($valueGetterName) || (is_array($valueGetterName) && empty($valueGetterName))) {
            unset($this->ValueGetterName);
        } else {
            $this->ValueGetterName = $valueGetterName;
        }
        return $this;
    }
}
