<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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