<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetDocumentStatusResponse StructType
 * @subpackage Structs
 */
class GetDocumentStatusResponse_1 extends AbstractStructBase
{
    /**
     * The GetDocumentStatusResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var EFaturaWebService_ResultType
     */
    public $GetDocumentStatusResult;
    /**
     * The statusInfo
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var DocumentStatusType
     */
    public $statusInfo;
    /**
     * Constructor method for GetDocumentStatusResponse
     * @uses GetDocumentStatusResponse_1::setGetDocumentStatusResult()
     * @uses GetDocumentStatusResponse_1::setStatusInfo()
     * @param EFaturaWebService_ResultType $getDocumentStatusResult
     * @param DocumentStatusType $statusInfo
     */
    public function __construct(EFaturaWebService_ResultType $getDocumentStatusResult = null, DocumentStatusType $statusInfo = null)
    {
        $this
            ->setGetDocumentStatusResult($getDocumentStatusResult)
            ->setStatusInfo($statusInfo);
    }
    /**
     * Get GetDocumentStatusResult 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 getGetDocumentStatusResult()
    {
        return isset($this->GetDocumentStatusResult) ? $this->GetDocumentStatusResult : null;
    }
    /**
     * Set GetDocumentStatusResult 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 $getDocumentStatusResult
     * @return GetDocumentStatusResponse_1
     */
    public function setGetDocumentStatusResult(EFaturaWebService_ResultType $getDocumentStatusResult = null)
    {
        if (is_null($getDocumentStatusResult) || (is_array($getDocumentStatusResult) && empty($getDocumentStatusResult))) {
            unset($this->GetDocumentStatusResult);
        } else {
            $this->GetDocumentStatusResult = $getDocumentStatusResult;
        }
        return $this;
    }
    /**
     * Get statusInfo 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 DocumentStatusType|null
     */
    public function getStatusInfo()
    {
        return isset($this->statusInfo) ? $this->statusInfo : null;
    }
    /**
     * Set statusInfo 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 DocumentStatusType $statusInfo
     * @return GetDocumentStatusResponse_1
     */
    public function setStatusInfo(DocumentStatusType $statusInfo = null)
    {
        if (is_null($statusInfo) || (is_array($statusInfo) && empty($statusInfo))) {
            unset($this->statusInfo);
        } else {
            $this->statusInfo = $statusInfo;
        }
        return $this;
    }
}
