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

/**
 * A folder in the authenticated user's album. By default, all folders and their 
 * pictures are returned. If a folder ID is specified, the folders' metadata and 
 * contents are returned. 
 *
 * @link http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/types/PictureManagerFolderType.html
 *
 */
class PictureManagerFolderType extends EbatNs_ComplexType
{
	/**
	 * @var int
	 */
	protected $FolderID;
	/**
	 * @var string
	 */
	protected $Name;
	/**
	 * @var PictureManagerPictureType
	 */
	protected $Picture;

	/**
	 * @return int
	 */
	function getFolderID()
	{
		return $this->FolderID;
	}
	/**
	 * @return void
	 * @param int $value 
	 */
	function setFolderID($value)
	{
		$this->FolderID = $value;
	}
	/**
	 * @return string
	 */
	function getName()
	{
		return $this->Name;
	}
	/**
	 * @return void
	 * @param string $value 
	 */
	function setName($value)
	{
		$this->Name = $value;
	}
	/**
	 * @return PictureManagerPictureType
	 * @param integer $index 
	 */
	function getPicture($index = null)
	{
		if ($index !== null) {
			return $this->Picture[$index];
		} else {
			return $this->Picture;
		}
	}
	/**
	 * @return void
	 * @param PictureManagerPictureType $value 
	 * @param  $index 
	 */
	function setPicture($value, $index = null)
	{
		if ($index !== null) {
			$this->Picture[$index] = $value;
		} else {
			$this->Picture = $value;
		}
	}
	/**
	 * @return void
	 * @param PictureManagerPictureType $value 
	 */
	function addPicture($value)
	{
		$this->Picture[] = $value;
	}
	/**
	 * @return 
	 */
	function __construct()
	{
		parent::__construct('PictureManagerFolderType', 'urn:ebay:apis:eBLBaseComponents');
		if (!isset(self::$_elements[__CLASS__]))
				self::$_elements[__CLASS__] = array_merge(self::$_elements[get_parent_class()],
				array(
					'FolderID' =>
					array(
						'required' => false,
						'type' => 'int',
						'nsURI' => 'http://www.w3.org/2001/XMLSchema',
						'array' => false,
						'cardinality' => '0..1'
					),
					'Name' =>
					array(
						'required' => false,
						'type' => 'string',
						'nsURI' => 'http://www.w3.org/2001/XMLSchema',
						'array' => false,
						'cardinality' => '0..1'
					),
					'Picture' =>
					array(
						'required' => false,
						'type' => 'PictureManagerPictureType',
						'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
						'array' => true,
						'cardinality' => '0..*'
					)
				));
	}
}
?>
