<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for getEArchiveInvoicePdfDataResponse StructType
 * @subpackage Structs
 */
class GetEArchiveInvoicePdfDataResponse extends AbstractStructBase
{
    /**
     * The getEArchiveInvoicePdfDataResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var bool
     */
    public $getEArchiveInvoicePdfDataResult;
    /**
     * The pdfData
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $pdfData;
    /**
     * Constructor method for getEArchiveInvoicePdfDataResponse
     * @uses GetEArchiveInvoicePdfDataResponse::setGetEArchiveInvoicePdfDataResult()
     * @uses GetEArchiveInvoicePdfDataResponse::setPdfData()
     * @param bool $getEArchiveInvoicePdfDataResult
     * @param string $pdfData
     */
    public function __construct($getEArchiveInvoicePdfDataResult = null, $pdfData = null)
    {
        $this
            ->setGetEArchiveInvoicePdfDataResult($getEArchiveInvoicePdfDataResult)
            ->setPdfData($pdfData);
    }
    /**
     * Get getEArchiveInvoicePdfDataResult value
     * @return bool|null
     */
    public function getGetEArchiveInvoicePdfDataResult()
    {
        return $this->getEArchiveInvoicePdfDataResult;
    }
    /**
     * Set getEArchiveInvoicePdfDataResult value
     * @param bool $getEArchiveInvoicePdfDataResult
     * @return GetEArchiveInvoicePdfDataResponse
     */
    public function setGetEArchiveInvoicePdfDataResult($getEArchiveInvoicePdfDataResult = null)
    {
        $this->getEArchiveInvoicePdfDataResult = $getEArchiveInvoicePdfDataResult;
        return $this;
    }
    /**
     * Get pdfData 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 string|null
     */
    public function getPdfData()
    {
        return isset($this->pdfData) ? $this->pdfData : null;
    }
    /**
     * Set pdfData 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 string $pdfData
     * @return GetEArchiveInvoicePdfDataResponse
     */
    public function setPdfData($pdfData = null)
    {
        if (is_null($pdfData) || (is_array($pdfData) && empty($pdfData))) {
            unset($this->pdfData);
        } else {
            $this->pdfData = $pdfData;
        }
        return $this;
    }
}
