<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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