<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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