<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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