Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?php
// autogenerated file 22.07.2011 09:27
// $Id: VariationsType.php 813 2011-11-03 08:31:07Z tiefland $
// $Log: $
//
//
require_once 'VariationType.php';
require_once 'EbatNs_ComplexType.php';
require_once 'PicturesType.php';
require_once 'NameValueListArrayType.php';

/**
 * Variations are multiple similar (but not identical) items in asingle fixed-price 
 * (or Store Inventory Format) listing.For example, a single listing could contain 
 * multiple items of thesame brand and model that vary by color and size (like 
 * "Blue, Large" and "Black, Medium"). Each variation can have its own quantity 
 * andprice. For example, a listing could include 10 "Blue, Large"variations and 20 
 * "Black, Medium" variations. 
 *
 * @link http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/types/VariationsType.html
 *
 */
class VariationsType extends EbatNs_ComplexType
{
        /**
         * @var VariationType
         */
        protected $Variation;
        /**
         * @var PicturesType
         */
        protected $Pictures;
        /**
         * @var NameValueListArrayType
         */
        protected $VariationSpecificsSet;

        /**
         * @return VariationType
         * @param integer $index 
         */
        function getVariation($index = null)
        {
                if ($index !== null) {
                        return $this->Variation[$index];
                } else {
                        return $this->Variation;
                }
        }
        /**
         * @return void
         * @param VariationType $value 
         * @param  $index 
         */
        function setVariation($value, $index = null)
        {
                if ($index !== null) {
                        $this->Variation[$index] = $value;
                } else {
                        $this->Variation = $value;
                }
        }
        /**
         * @return void
         * @param VariationType $value 
         */
        function addVariation($value)
        {
                $this->Variation[] = $value;
        }
        /**
         * @return PicturesType
         * @param integer $index 
         */
        function getPictures($index = null)
        {
                if ($index !== null) {
                        return $this->Pictures[$index];
                } else {
                        return $this->Pictures;
                }
        }
        /**
         * @return void
         * @param PicturesType $value 
         * @param  $index 
         */
        function setPictures($value, $index = null)
        {
                if ($index !== null) {
                        $this->Pictures[$index] = $value;
                } else {
                        $this->Pictures = $value;
                }
        }
        /**
         * @return void
         * @param PicturesType $value 
         */
        function addPictures($value)
        {
                $this->Pictures[] = $value;
        }
        /**
         * @return NameValueListArrayType
         */
        function getVariationSpecificsSet()
        {
                return $this->VariationSpecificsSet;
        }
        /**
         * @return void
         * @param NameValueListArrayType $value 
         */
        function setVariationSpecificsSet($value)
        {
                $this->VariationSpecificsSet = $value;
        }
        /**
         * @return 
         */
        function __construct()
        {
                parent::__construct('VariationsType', 'urn:ebay:apis:eBLBaseComponents');
                if (!isset(self::$_elements[__CLASS__]))
                                self::$_elements[__CLASS__] = array_merge(self::$_elements[get_parent_class()],
                                array(
                                        'Variation' =>
                                        array(
                                                'required' => false,
                                                'type' => 'VariationType',
                                                'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
                                                'array' => true,
                                                'cardinality' => '0..*'
                                        ),
                                        'Pictures' =>
                                        array(
                                                'required' => false,
                                                'type' => 'PicturesType',
                                                'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
                                                'array' => true,
                                                'cardinality' => '0..*'
                                        ),
                                        'VariationSpecificsSet' =>
                                        array(
                                                'required' => false,
                                                'type' => 'NameValueListArrayType',
                                                'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
                                                'array' => false,
                                                'cardinality' => '0..1'
                                        )
                                ));
        }
}
?>