<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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