/** * @param ReflectionClass $class * @param string $name * @return bool */ private function isAllowedIndirectImplementer(ReflectionClass $class, $name) { if ($class->isDocumented() && $class->implementsInterface($name) && !in_array($name, $class->getOwnInterfaceNames())) { return TRUE; } return FALSE; }