protected function _addClass(OClass $class) { if (isset($this->_classes[$class->getName()])) { throw OSchemaException::classAlreadyExists($class->getName()); } $this->_classes[$class->getName()] = $class; }
/** * @param bool $includeParent true to include parent properties * * @return OProperty[] */ public function getProperties($includeParent = true) { return isset($this->_superClass) && $includeParent ? array_merge($this->_superClass->getProperties(), $this->_properties) : $this->_properties; }