<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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