<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetMailStatusResponse StructType
 * @subpackage Structs
 */
class GetMailStatusResponse extends AbstractStructBase
{
    /**
     * The GetMailStatusResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var EFaturaWebService_ResultType
     */
    public $GetMailStatusResult;
    /**
     * The emailResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var ArrayOfMailStatusResult
     */
    public $emailResult;
    /**
     * Constructor method for GetMailStatusResponse
     * @uses GetMailStatusResponse::setGetMailStatusResult()
     * @uses GetMailStatusResponse::setEmailResult()
     * @param EFaturaWebService_ResultType $getMailStatusResult
     * @param ArrayOfMailStatusResult $emailResult
     */
    public function __construct(EFaturaWebService_ResultType $getMailStatusResult = null, ArrayOfMailStatusResult $emailResult = null)
    {
        $this
            ->setGetMailStatusResult($getMailStatusResult)
            ->setEmailResult($emailResult);
    }
    /**
     * Get GetMailStatusResult 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 getGetMailStatusResult()
    {
        return isset($this->GetMailStatusResult) ? $this->GetMailStatusResult : null;
    }
    /**
     * Set GetMailStatusResult 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 $getMailStatusResult
     * @return GetMailStatusResponse
     */
    public function setGetMailStatusResult(EFaturaWebService_ResultType $getMailStatusResult = null)
    {
        if (is_null($getMailStatusResult) || (is_array($getMailStatusResult) && empty($getMailStatusResult))) {
            unset($this->GetMailStatusResult);
        } else {
            $this->GetMailStatusResult = $getMailStatusResult;
        }
        return $this;
    }
    /**
     * Get emailResult 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 ArrayOfMailStatusResult|null
     */
    public function getEmailResult()
    {
        return isset($this->emailResult) ? $this->emailResult : null;
    }
    /**
     * Set emailResult 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 ArrayOfMailStatusResult $emailResult
     * @return GetMailStatusResponse
     */
    public function setEmailResult(ArrayOfMailStatusResult $emailResult = null)
    {
        if (is_null($emailResult) || (is_array($emailResult) && empty($emailResult))) {
            unset($this->emailResult);
        } else {
            $this->emailResult = $emailResult;
        }
        return $this;
    }
}
