<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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