<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetVoucherPdf_BackgroundResponse EasyStruct
 * @package Easy
 * @subpackage Structs
 */
class EasyGetVoucherPdf_BackgroundResponse extends AbstractStructBase
{
    /**
     * The GetVoucherPdf_BackgroundResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \Easy\EasyStruct\EasyClsGetVoucherPDFResp
     */
    public $GetVoucherPdf_BackgroundResult;
    /**
     * Constructor method for GetVoucherPdf_BackgroundResponse
     * @uses EasyGetVoucherPdf_BackgroundResponse::setGetVoucherPdf_BackgroundResult()
     * @param \Easy\EasyStruct\EasyClsGetVoucherPDFResp $getVoucherPdf_BackgroundResult
     */
    public function __construct(\Easy\EasyStruct\EasyClsGetVoucherPDFResp $getVoucherPdf_BackgroundResult = null)
    {
        $this
            ->setGetVoucherPdf_BackgroundResult($getVoucherPdf_BackgroundResult);
    }
    /**
     * Get GetVoucherPdf_BackgroundResult 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 \Easy\EasyStruct\EasyClsGetVoucherPDFResp|null
     */
    public function getGetVoucherPdf_BackgroundResult()
    {
        return isset($this->GetVoucherPdf_BackgroundResult) ? $this->GetVoucherPdf_BackgroundResult : null;
    }
    /**
     * Set GetVoucherPdf_BackgroundResult 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 \Easy\EasyStruct\EasyClsGetVoucherPDFResp $getVoucherPdf_BackgroundResult
     * @return \Easy\EasyStruct\EasyGetVoucherPdf_BackgroundResponse
     */
    public function setGetVoucherPdf_BackgroundResult(\Easy\EasyStruct\EasyClsGetVoucherPDFResp $getVoucherPdf_BackgroundResult = null)
    {
        if (is_null($getVoucherPdf_BackgroundResult) || (is_array($getVoucherPdf_BackgroundResult) && empty($getVoucherPdf_BackgroundResult))) {
            unset($this->GetVoucherPdf_BackgroundResult);
        } else {
            $this->GetVoucherPdf_BackgroundResult = $getVoucherPdf_BackgroundResult;
        }
        return $this;
    }
}
