InterfaceHierarchyResolver
in package
Interface hierarchy resolver class
Shared by ClassReflection and InterfaceReflection, which previously each carried their own identical copy of this filter.
Tags
Table of Contents
Methods
- direct() : array<string, ReflectionClass>
- Filter a ReflectionClass::getInterfaces() result down to the interfaces directly declared here -- getInterfaces() returns the full transitive closure, so a candidate is excluded if it's already reachable via $excludeNames (e.g. a parent class's own interfaces) or is implied by another candidate already in the set (i.e. reported by that candidate's own getInterfaceNames(), meaning it isn't a distinct direct declaration here).
Methods
direct()
Filter a ReflectionClass::getInterfaces() result down to the interfaces directly declared here -- getInterfaces() returns the full transitive closure, so a candidate is excluded if it's already reachable via $excludeNames (e.g. a parent class's own interfaces) or is implied by another candidate already in the set (i.e. reported by that candidate's own getInterfaceNames(), meaning it isn't a distinct direct declaration here).
public
static direct(array<string, ReflectionClass> $interfaces[, array<int, string> $excludeNames = [] ]) : array<string, ReflectionClass>
Parameters
- $interfaces : array<string, ReflectionClass>
- $excludeNames : array<int, string> = []