/**
  * @param array $values Optional properties and values to assign to the object.
  */
 public function __construct(array $values = array())
 {
     list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values);
     parent::__construct($parentValues);
     if (!array_key_exists(__CLASS__, self::$properties)) {
         self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes);
     }
     if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) {
         self::$xmlNamespaces[__CLASS__] = 'urn:ebay:apis:eBLBaseComponents';
     }
     $this->setValues(__CLASS__, $childValues);
 }
示例#2
0
 public function __construct(array $values = array())
 {
     list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values);
     parent::__construct($parentValues);
     if (!array_key_exists(__CLASS__, self::$properties)) {
         self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes);
     }
     if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) {
         self::$xmlNamespaces[__CLASS__] = 'http://davidtsadler.com';
     }
     $this->setValues(__CLASS__, $childValues);
 }