<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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