Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?php
// autogenerated file 22.07.2011 09:27
// $Id: $
// $Log: $
//
//
require_once 'EbatNs_ComplexType.php';
require_once 'FeedbackSummaryPeriodCodeType.php';
require_once 'AverageRatingDetailsType.php';

/**
 * Container for average detailed seller ratings.If a seller has detailed ratings, 
 * they are displayedin the Feedback Profile of the seller. 
 *
 * @link http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/types/AverageRatingSummaryType.html
 *
 */
class AverageRatingSummaryType extends EbatNs_ComplexType
{
        /**
         * @var FeedbackSummaryPeriodCodeType
         */
        protected $FeedbackSummaryPeriod;
        /**
         * @var AverageRatingDetailsType
         */
        protected $AverageRatingDetails;

        /**
         * @return FeedbackSummaryPeriodCodeType
         */
        function getFeedbackSummaryPeriod()
        {
                return $this->FeedbackSummaryPeriod;
        }
        /**
         * @return void
         * @param FeedbackSummaryPeriodCodeType $value 
         */
        function setFeedbackSummaryPeriod($value)
        {
                $this->FeedbackSummaryPeriod = $value;
        }
        /**
         * @return AverageRatingDetailsType
         * @param integer $index 
         */
        function getAverageRatingDetails($index = null)
        {
                if ($index !== null) {
                        return $this->AverageRatingDetails[$index];
                } else {
                        return $this->AverageRatingDetails;
                }
        }
        /**
         * @return void
         * @param AverageRatingDetailsType $value 
         * @param  $index 
         */
        function setAverageRatingDetails($value, $index = null)
        {
                if ($index !== null) {
                        $this->AverageRatingDetails[$index] = $value;
                } else {
                        $this->AverageRatingDetails = $value;
                }
        }
        /**
         * @return void
         * @param AverageRatingDetailsType $value 
         */
        function addAverageRatingDetails($value)
        {
                $this->AverageRatingDetails[] = $value;
        }
        /**
         * @return 
         */
        function __construct()
        {
                parent::__construct('AverageRatingSummaryType', 'urn:ebay:apis:eBLBaseComponents');
                if (!isset(self::$_elements[__CLASS__]))
                                self::$_elements[__CLASS__] = array_merge(self::$_elements[get_parent_class()],
                                array(
                                        'FeedbackSummaryPeriod' =>
                                        array(
                                                'required' => false,
                                                'type' => 'FeedbackSummaryPeriodCodeType',
                                                'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
                                                'array' => false,
                                                'cardinality' => '0..1'
                                        ),
                                        'AverageRatingDetails' =>
                                        array(
                                                'required' => false,
                                                'type' => 'AverageRatingDetailsType',
                                                'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
                                                'array' => true,
                                                'cardinality' => '0..*'
                                        )
                                ));
        }
}
?>