use of com.jetbrains.php.lang.psi.elements.PhpClassMember in project phpinspectionsea by kalessil.
the class ProtectedMembersOfFinalClassStrategy method isOverride.
private static boolean isOverride(@NotNull PhpClassMember member, @NotNull PhpClass clazz) {
boolean result = false;
final PhpClass parent = OpenapiResolveUtil.resolveSuperClass(clazz);
if (null != parent) {
final String memberName = member.getName();
final PhpClassMember parentMember = member instanceof Field ? parent.findFieldByName(memberName, ((Field) member).isConstant()) : OpenapiResolveUtil.resolveMethod(parent, memberName);
result = parentMember != null;
}
return result;
}
Aggregations