<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for RuleSystemDescription StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:RuleSystemDescription
 * @subpackage Structs
 */
class RuleSystemDescription extends AbstractStructBase
{
    /**
     * The RuleSets
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfRuleSetDescription
     */
    public $RuleSets;
    /**
     * The SupportedValueGetters
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfValueGetterDescription
     */
    public $SupportedValueGetters;
    /**
     * The ValueGetterGroups
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfValueGetterGroupDescription
     */
    public $ValueGetterGroups;
    /**
     * Constructor method for RuleSystemDescription
     * @uses RuleSystemDescription::setRuleSets()
     * @uses RuleSystemDescription::setSupportedValueGetters()
     * @uses RuleSystemDescription::setValueGetterGroups()
     * @param \patest\ArrayType\ArrayOfRuleSetDescription $ruleSets
     * @param \patest\ArrayType\ArrayOfValueGetterDescription $supportedValueGetters
     * @param \patest\ArrayType\ArrayOfValueGetterGroupDescription $valueGetterGroups
     */
    public function __construct(\patest\ArrayType\ArrayOfRuleSetDescription $ruleSets = null, \patest\ArrayType\ArrayOfValueGetterDescription $supportedValueGetters = null, \patest\ArrayType\ArrayOfValueGetterGroupDescription $valueGetterGroups = null)
    {
        $this
            ->setRuleSets($ruleSets)
            ->setSupportedValueGetters($supportedValueGetters)
            ->setValueGetterGroups($valueGetterGroups);
    }
    /**
     * Get RuleSets 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 \patest\ArrayType\ArrayOfRuleSetDescription|null
     */
    public function getRuleSets()
    {
        return isset($this->RuleSets) ? $this->RuleSets : null;
    }
    /**
     * Set RuleSets 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 \patest\ArrayType\ArrayOfRuleSetDescription $ruleSets
     * @return \patest\StructType\RuleSystemDescription
     */
    public function setRuleSets(\patest\ArrayType\ArrayOfRuleSetDescription $ruleSets = null)
    {
        if (is_null($ruleSets) || (is_array($ruleSets) && empty($ruleSets))) {
            unset($this->RuleSets);
        } else {
            $this->RuleSets = $ruleSets;
        }
        return $this;
    }
    /**
     * Get SupportedValueGetters 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 \patest\ArrayType\ArrayOfValueGetterDescription|null
     */
    public function getSupportedValueGetters()
    {
        return isset($this->SupportedValueGetters) ? $this->SupportedValueGetters : null;
    }
    /**
     * Set SupportedValueGetters 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 \patest\ArrayType\ArrayOfValueGetterDescription $supportedValueGetters
     * @return \patest\StructType\RuleSystemDescription
     */
    public function setSupportedValueGetters(\patest\ArrayType\ArrayOfValueGetterDescription $supportedValueGetters = null)
    {
        if (is_null($supportedValueGetters) || (is_array($supportedValueGetters) && empty($supportedValueGetters))) {
            unset($this->SupportedValueGetters);
        } else {
            $this->SupportedValueGetters = $supportedValueGetters;
        }
        return $this;
    }
    /**
     * Get ValueGetterGroups 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 \patest\ArrayType\ArrayOfValueGetterGroupDescription|null
     */
    public function getValueGetterGroups()
    {
        return isset($this->ValueGetterGroups) ? $this->ValueGetterGroups : null;
    }
    /**
     * Set ValueGetterGroups 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 \patest\ArrayType\ArrayOfValueGetterGroupDescription $valueGetterGroups
     * @return \patest\StructType\RuleSystemDescription
     */
    public function setValueGetterGroups(\patest\ArrayType\ArrayOfValueGetterGroupDescription $valueGetterGroups = null)
    {
        if (is_null($valueGetterGroups) || (is_array($valueGetterGroups) && empty($valueGetterGroups))) {
            unset($this->ValueGetterGroups);
        } else {
            $this->ValueGetterGroups = $valueGetterGroups;
        }
        return $this;
    }
}
