<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for XLbmGroup StructType
 * @subpackage Structs
 */
class XLbmGroup extends AbstractStructBase
{
    /**
     * The name
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: false
     * @var string
     */
    public $name;
    /**
     * The ProcessnodeActive
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: true
     * @var XFkType
     */
    public $ProcessnodeActive;
    /**
     * The Description
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: false
     * @var string
     */
    public $Description;
    /**
     * The ProcessnodeStandby
     * Meta informations extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var XFkType
     */
    public $ProcessnodeStandby;
    /**
     * Constructor method for XLbmGroup
     * @uses XLbmGroup::setName()
     * @uses XLbmGroup::setProcessnodeActive()
     * @uses XLbmGroup::setDescription()
     * @uses XLbmGroup::setProcessnodeStandby()
     * @param string $name
     * @param XFkType $processnodeActive
     * @param string $description
     * @param XFkType $processnodeStandby
     */
    public function __construct($name = null, XFkType $processnodeActive = null, $description = null, XFkType $processnodeStandby = null)
    {
        $this
            ->setName($name)
            ->setProcessnodeActive($processnodeActive)
            ->setDescription($description)
            ->setProcessnodeStandby($processnodeStandby);
    }
    /**
     * Get name value
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }
    /**
     * Set name value
     * @param string $name
     * @return XLbmGroup
     */
    public function setName($name = null)
    {
        // validation for constraint: string
        if (!is_null($name) && !is_string($name)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($name)), __LINE__);
        }
        $this->name = $name;
        return $this;
    }
    /**
     * Get ProcessnodeActive value
     * @return XFkType
     */
    public function getProcessnodeActive()
    {
        return $this->ProcessnodeActive;
    }
    /**
     * Set ProcessnodeActive value
     * @param XFkType $processnodeActive
     * @return XLbmGroup
     */
    public function setProcessnodeActive(XFkType $processnodeActive = null)
    {
        $this->ProcessnodeActive = $processnodeActive;
        return $this;
    }
    /**
     * Get Description value
     * @return string|null
     */
    public function getDescription()
    {
        return $this->Description;
    }
    /**
     * Set Description value
     * @param string $description
     * @return XLbmGroup
     */
    public function setDescription($description = null)
    {
        // validation for constraint: string
        if (!is_null($description) && !is_string($description)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($description)), __LINE__);
        }
        $this->Description = $description;
        return $this;
    }
    /**
     * Get ProcessnodeStandby 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 XFkType|null
     */
    public function getProcessnodeStandby()
    {
        return isset($this->ProcessnodeStandby) ? $this->ProcessnodeStandby : null;
    }
    /**
     * Set ProcessnodeStandby 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 XFkType $processnodeStandby
     * @return XLbmGroup
     */
    public function setProcessnodeStandby(XFkType $processnodeStandby = null)
    {
        if (is_null($processnodeStandby) || (is_array($processnodeStandby) && empty($processnodeStandby))) {
            unset($this->ProcessnodeStandby);
        } else {
            $this->ProcessnodeStandby = $processnodeStandby;
        }
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return XLbmGroup
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
