<?php
/* Generated on 14.02.18 14:28 by globalsync
 * $Id: $
 * $Log: $
 */

require_once 'EbatNs_ComplexType.php';
require_once 'MyMessagesExternalMessageIDType.php';

/**
  * Contains a list of up to 10 external message IDs.
  * 
 **/

class MyMessagesExternalMessageIDArrayType extends EbatNs_ComplexType
{
	/**
	* @var MyMessagesExternalMessageIDType
	**/
	protected $ExternalMessageID;


	/**
	 * Class Constructor 
	 **/
	function __construct()
	{
		parent::__construct('MyMessagesExternalMessageIDArrayType', 'urn:ebay:apis:eBLBaseComponents');
		if (!isset(self::$_elements[__CLASS__]))
		{
			self::$_elements[__CLASS__] = array_merge(self::$_elements[get_parent_class(__CLASS__)],
			array(
				'ExternalMessageID' =>
				array(
					'required' => false,
					'type' => 'MyMessagesExternalMessageIDType',
					'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
					'array' => true,
					'cardinality' => '0..*'
				)));
		}
		$this->_attributes = array_merge($this->_attributes,
		array(
));
	}

	/**
	 * @return MyMessagesExternalMessageIDType
	 * @param integer $index 
	 **/
	function getExternalMessageID($index = null)
	{
		if ($index !== null)
		{
			return $this->ExternalMessageID[$index];
		}
		else
		{
			return $this->ExternalMessageID;
		}
	}

	/**
	 * @return void
	 * @param MyMessagesExternalMessageIDType $value
	 * @param integer $index 
	 **/
	function setExternalMessageID($value, $index = null)
	{
		if ($index !== null)
		{
			$this->ExternalMessageID[$index] = $value;
		}
		else
		{
			$this->ExternalMessageID= $value;
		}
	}

	/**
	 * @return void
	 * @param MyMessagesExternalMessageIDType $value
	 **/
	function addExternalMessageID($value)
	{
		$this->ExternalMessageID[] = $value;
	}

}
?>
