ClassInterfaceFqnsExtractor
class ClassInterfaceFqnsExtractor (View source)
Extracts the list of directly-implemented interface FQNs from a class-like entity.
When ClassHierarchyResolver has linked interface objects to their actual instances, getId() carries the fully-qualified name (e.g. "\Throwable"). The leading backslash is stripped so the result matches the format PHP reflection returns (e.g. "Throwable"). For unresolved stubs (getId() is null) the stored getName() value is used as a fallback.
Methods
array
extract(PHPClassLikeObject $entity)
Returns FQNs (no leading ) of all directly-implemented interfaces.
Details
array
extract(PHPClassLikeObject $entity)
Returns FQNs (no leading ) of all directly-implemented interfaces.