<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CheckGibUserResponse StructType
 * @subpackage Structs
 */
class CheckGibUserResponse extends AbstractStructBase
{
    /**
     * The CheckGibUserResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var EFaturaWebService_ResultType
     */
    public $CheckGibUserResult;
    /**
     * The userList
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var ArrayOfGibUserType
     */
    public $userList;
    /**
     * Constructor method for CheckGibUserResponse
     * @uses CheckGibUserResponse::setCheckGibUserResult()
     * @uses CheckGibUserResponse::setUserList()
     * @param EFaturaWebService_ResultType $checkGibUserResult
     * @param ArrayOfGibUserType $userList
     */
    public function __construct(EFaturaWebService_ResultType $checkGibUserResult = null, ArrayOfGibUserType $userList = null)
    {
        $this
            ->setCheckGibUserResult($checkGibUserResult)
            ->setUserList($userList);
    }
    /**
     * Get CheckGibUserResult 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 EFaturaWebService_ResultType|null
     */
    public function getCheckGibUserResult()
    {
        return isset($this->CheckGibUserResult) ? $this->CheckGibUserResult : null;
    }
    /**
     * Set CheckGibUserResult 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 EFaturaWebService_ResultType $checkGibUserResult
     * @return CheckGibUserResponse
     */
    public function setCheckGibUserResult(EFaturaWebService_ResultType $checkGibUserResult = null)
    {
        if (is_null($checkGibUserResult) || (is_array($checkGibUserResult) && empty($checkGibUserResult))) {
            unset($this->CheckGibUserResult);
        } else {
            $this->CheckGibUserResult = $checkGibUserResult;
        }
        return $this;
    }
    /**
     * Get userList 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 ArrayOfGibUserType|null
     */
    public function getUserList()
    {
        return isset($this->userList) ? $this->userList : null;
    }
    /**
     * Set userList 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 ArrayOfGibUserType $userList
     * @return CheckGibUserResponse
     */
    public function setUserList(ArrayOfGibUserType $userList = null)
    {
        if (is_null($userList) || (is_array($userList) && empty($userList))) {
            unset($this->userList);
        } else {
            $this->userList = $userList;
        }
        return $this;
    }
}
