Example #1
0
 protected function _addProperty(OProperty $property)
 {
     $name = $property->getName();
     if (isset($this->_properties[$name])) {
         throw OSchemaException::propertyAlreadyExists($name, $this->getName());
     }
     $this->_properties[$name] = $property;
 }