<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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