<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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