Documentation

InterfaceHierarchyResolver
in package

Interface hierarchy resolver class

Shared by ClassReflection and InterfaceReflection, which previously each carried their own identical copy of this filter.

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
6.0.0

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> = []
Return values
array<string, ReflectionClass>

        
On this page

Search results