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

require_once 'EbatNs_ComplexType.php';
require_once 'ConditionType.php';

/**
 * Fields in this type provide condition values and display names.
 *
 **/

class SpecialFeaturesType extends EbatNs_ComplexType
{
    /**
     * @var ConditionType
     **/
    protected $Condition;

    /**
     * @var anyURI
     **/
    protected $ConditionHelpURL;


    /**
     * Class Constructor
     **/
    function __construct()
    {
        parent::__construct('SpecialFeaturesType', 'urn:ebay:apis:eBLBaseComponents');
        if (!isset(self::$_elements[__CLASS__]))
        {
            self::$_elements[__CLASS__] = array_merge(self::$_elements[get_parent_class(__CLASS__)],
                array(
                    'Condition' =>
                        array(
                            'required' => false,
                            'type' => 'ConditionType',
                            'nsURI' => 'urn:ebay:apis:eBLBaseComponents',
                            'array' => true,
                            'cardinality' => '0..*'
                        ),
                    'ConditionHelpURL' =>
                        array(
                            'required' => false,
                            'type' => 'anyURI',
                            'nsURI' => 'http://www.w3.org/2001/XMLSchema',
                            'array' => false,
                            'cardinality' => '0..1'
                        )));
        }
        $this->_attributes = array_merge($this->_attributes,
            array(
            ));
    }

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

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

    /**
     * @return void
     * @param ConditionType $value
     **/
    function addCondition($value)
    {
        $this->Condition[] = $value;
    }

    /**
     * @return anyURI
     **/
    function getConditionHelpURL()
    {
        return $this->ConditionHelpURL;
    }

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

}
?>
