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

/**
 * Contains multiple individual feedback detail entries. 
 *
 * @link http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/types/FeedbackDetailArrayType.html
 *
 */
class FeedbackDetailArrayType extends EbatNs_ComplexType
{
	/**
	 * @var FeedbackDetailType
	 */
	protected $FeedbackDetail;

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