<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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