<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for getUserListResponse StructType
 * @subpackage Structs
 */
class GetUserListResponse extends AbstractStructBase
{
    /**
     * The getUserListResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var DocumentType
     */
    public $getUserListResult;
    /**
     * Constructor method for getUserListResponse
     * @uses GetUserListResponse::setGetUserListResult()
     * @param DocumentType $getUserListResult
     */
    public function __construct(DocumentType $getUserListResult = null)
    {
        $this
            ->setGetUserListResult($getUserListResult);
    }
    /**
     * Get getUserListResult 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 DocumentType|null
     */
    public function getGetUserListResult()
    {
        return isset($this->getUserListResult) ? $this->getUserListResult : null;
    }
    /**
     * Set getUserListResult 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 DocumentType $getUserListResult
     * @return GetUserListResponse
     */
    public function setGetUserListResult(DocumentType $getUserListResult = null)
    {
        if (is_null($getUserListResult) || (is_array($getUserListResult) && empty($getUserListResult))) {
            unset($this->getUserListResult);
        } else {
            $this->getUserListResult = $getUserListResult;
        }
        return $this;
    }
}
