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

require_once 'EbatNs_ComplexType.php';
require_once 'BidGroupItemType.php';
require_once 'BidGroupStatusCodeType.php';

/**
  * This type is deprecated.
  * 
 **/

class BidGroupType extends EbatNs_ComplexType
{
	/**
	* @var BidGroupItemType
	**/
	protected $BidGroupItem;

	/**
	* @var long
	**/
	protected $BidGroupID;

	/**
	* @var string
	**/
	protected $BidGroupName;

	/**
	* @var BidGroupStatusCodeType
	**/
	protected $BidGroupStatus;


	/**
	 * Class Constructor 
	 **/
	function __construct()
	{
		parent::__construct('BidGroupType', 'urn:ebay:apis:eBLBaseComponents');
		if (!isset(self::$_elements[__CLASS__]))
		{
			self::$_elements[__CLASS__] = array_merge(self::$_elements[get_parent_class(__CLASS__)],
			array(
				'BidGroupItem' =>
				array(
					'required' => false,
					'type' => 'BidGroupItemType',
					'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
					'array' => true,
					'cardinality' => '0..*'
				),
				'BidGroupID' =>
				array(
					'required' => false,
					'type' => 'long',
					'nsURI' => 'http://www.w3.org/2001/XMLSchema',
					'array' => false,
					'cardinality' => '0..1'
				),
				'BidGroupName' =>
				array(
					'required' => false,
					'type' => 'string',
					'nsURI' => 'http://www.w3.org/2001/XMLSchema',
					'array' => false,
					'cardinality' => '0..1'
				),
				'BidGroupStatus' =>
				array(
					'required' => false,
					'type' => 'BidGroupStatusCodeType',
					'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
					'array' => false,
					'cardinality' => '0..1'
				)));
		}
		$this->_attributes = array_merge($this->_attributes,
		array(
));
	}

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

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

	/**
	 * @return void
	 * @param BidGroupItemType $value
	 **/
	function addBidGroupItem($value)
	{
		$this->BidGroupItem[] = $value;
	}

	/**
	 * @return long
	 **/
	function getBidGroupID()
	{
		return $this->BidGroupID;
	}

	/**
	 * @return void
	 **/
	function setBidGroupID($value)
	{
		$this->BidGroupID = $value;
	}

	/**
	 * @return string
	 **/
	function getBidGroupName()
	{
		return $this->BidGroupName;
	}

	/**
	 * @return void
	 **/
	function setBidGroupName($value)
	{
		$this->BidGroupName = $value;
	}

	/**
	 * @return BidGroupStatusCodeType
	 **/
	function getBidGroupStatus()
	{
		return $this->BidGroupStatus;
	}

	/**
	 * @return void
	 **/
	function setBidGroupStatus($value)
	{
		$this->BidGroupStatus = $value;
	}

}
?>
