<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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