src/mg/Ding/Bean/Provider/Annotation.php
private function _getParentBeanDefinition($class)
    {
        $def = null;
        while($parentRefClass = $this->reflectionFactory->getClass($class)->getParentClass())
        {
            $class = $parentRefClass->getName();
            // Does this class has a valid bean annotation?
            if (isset($this->_knownClassesWithValidBeanAnnotations[$class])) {
                $parentNameBean = $this->_knownClassesWithValidBeanAnnotations[$class];
                return $this->_container->getBeanDefinition($parentNameBean);
            }
        }
        return $def;
    }
private function _getParentBeanDefinition($class)
    {
        $def = null;
        while($parentRefClass = $this->reflectionFactory->getClass($class)->getParentClass())
        {
            $class = $parentRefClass->getName();
            // Does this class has a valid bean annotation?
            if (isset($this->_knownClassesWithValidBeanAnnotations[$class])) {
                $parentNameBean = $this->_knownClassesWithValidBeanAnnotations[$class];
                return $this->_container->getBeanDefinition($parentNameBean);
            }
        }
        return $def;
    }
Returns the bean definition for a parent class of a class (if found). If
the parent class has a valid bean annotation (see $_knownBeans) it will
be returned.

@param string $class

@return BeanDefinition|null