<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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