<?php

namespace GQ_\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ResponseGetGroupDataByUserid Structs
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:ResponseGetGroupDataByUserid
 * @package GQ_
 * @subpackage Structs
 */
class GQ_ResponseGetGroupDataByUserid extends AbstractStructBase
{
    /**
     * The GroupDatas
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \GQ_\Arrays\GQ_ArrayOfGroupData
     */
    public $GroupDatas;
    /**
     * The Exceptions
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \GQ_\Structs\GQ_ExceptionInformation_Exceptions
     */
    public $Exceptions;
    /**
     * Constructor method for ResponseGetGroupDataByUserid
     * @uses GQ_ResponseGetGroupDataByUserid::setGroupDatas()
     * @uses GQ_ResponseGetGroupDataByUserid::setExceptions()
     * @param \GQ_\Arrays\GQ_ArrayOfGroupData $groupDatas
     * @param \GQ_\Structs\GQ_ExceptionInformation_Exceptions $exceptions
     */
    public function __construct(\GQ_\Arrays\GQ_ArrayOfGroupData $groupDatas = null, \GQ_\Structs\GQ_ExceptionInformation_Exceptions $exceptions = null)
    {
        $this
            ->setGroupDatas($groupDatas)
            ->setExceptions($exceptions);
    }
    /**
     * Get GroupDatas 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 \GQ_\Arrays\GQ_ArrayOfGroupData|null
     */
    public function getGroupDatas()
    {
        return isset($this->GroupDatas) ? $this->GroupDatas : null;
    }
    /**
     * Set GroupDatas 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 \GQ_\Arrays\GQ_ArrayOfGroupData $groupDatas
     * @return \GQ_\Structs\GQ_ResponseGetGroupDataByUserid
     */
    public function setGroupDatas(\GQ_\Arrays\GQ_ArrayOfGroupData $groupDatas = null)
    {
        if (is_null($groupDatas) || (is_array($groupDatas) && empty($groupDatas))) {
            unset($this->GroupDatas);
        } else {
            $this->GroupDatas = $groupDatas;
        }
        return $this;
    }
    /**
     * Get Exceptions 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 \GQ_\Structs\GQ_ExceptionInformation_Exceptions|null
     */
    public function getExceptions()
    {
        return isset($this->Exceptions) ? $this->Exceptions : null;
    }
    /**
     * Set Exceptions 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 \GQ_\Structs\GQ_ExceptionInformation_Exceptions $exceptions
     * @return \GQ_\Structs\GQ_ResponseGetGroupDataByUserid
     */
    public function setExceptions(\GQ_\Structs\GQ_ExceptionInformation_Exceptions $exceptions = null)
    {
        if (is_null($exceptions) || (is_array($exceptions) && empty($exceptions))) {
            unset($this->Exceptions);
        } else {
            $this->Exceptions = $exceptions;
        }
        return $this;
    }
}
