ock/class-discovery

dev-main 2025-04-28 00:08 UTC

This package is auto-updated.

Last update: 2025-04-28 02:16:57 UTC


README

This package provides components and abstractions to help with all kinds of discovery operations across php class files.

Main concepts:

  • ReflectionClassesIA*:
    IteratorAggregate that lists a special type of \ReflectionClass class objects.
    Typically this is based on a ClassFilesIA* object.
  • FactoryReflection*:
    Interface for custom ClassReflection and MethodReflection, with methods that treat both of them as "factories".
  • FactoryInspector*:
    Inspects a classes or methods, to find whatever you might be looking for.
  • Discovery*:
    IteratorAggregate to discover objects found by an inspector in reflection methods.