<?php
// autogenerated file 26.07.2010 14:55
// $Id: $
// $Log: $
//
//
require_once 'SellingManagerTemplateDetailsType.php';
require_once 'EbatNs_ComplexType.php';

/**
 * A list of Selling Manager templates. 
 *
 * @link http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/types/SellingManagerTemplateDetailsArrayType.html
 *
 */
class SellingManagerTemplateDetailsArrayType extends EbatNs_ComplexType
{
	/**
	 * @var SellingManagerTemplateDetailsType
	 */
	protected $SellingManagerTemplateDetails;

	/**
	 * @return SellingManagerTemplateDetailsType
	 * @param integer $index 
	 */
	function getSellingManagerTemplateDetails($index = null)
	{
		if ($index !== null) {
			return $this->SellingManagerTemplateDetails[$index];
		} else {
			return $this->SellingManagerTemplateDetails;
		}
	}
	/**
	 * @return void
	 * @param SellingManagerTemplateDetailsType $value 
	 * @param  $index 
	 */
	function setSellingManagerTemplateDetails($value, $index = null)
	{
		if ($index !== null) {
			$this->SellingManagerTemplateDetails[$index] = $value;
		} else {
			$this->SellingManagerTemplateDetails = $value;
		}
	}
	/**
	 * @return void
	 * @param SellingManagerTemplateDetailsType $value 
	 */
	function addSellingManagerTemplateDetails($value)
	{
		$this->SellingManagerTemplateDetails[] = $value;
	}
	/**
	 * @return 
	 */
	function __construct()
	{
		parent::__construct('SellingManagerTemplateDetailsArrayType', 'urn:ebay:apis:eBLBaseComponents');
		if (!isset(self::$_elements[__CLASS__]))
				self::$_elements[__CLASS__] = array_merge(self::$_elements[get_parent_class()],
				array(
					'SellingManagerTemplateDetails' =>
					array(
						'required' => false,
						'type' => 'SellingManagerTemplateDetailsType',
						'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
						'array' => true,
						'cardinality' => '0..*'
					)
				));
	}
}
?>
