<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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