Serializor\Reflect final class

Documentation

Provides Reflection objects for various use cases and caches the reflection instances to avoid excessive garbage collection.

Properties (5)

private static bool $initialized
private static array $reflectionClassCache
private static WeakMap $reflectionObjectCache
private static WeakMap $reflectionFunctionCache
private static array $propertyReflectors

Caches ReflectionProperty instances for the class and

Methods (7)

Documentation missing

Provide a hash unique for the Reflection instance.

Get and cache a ReflectionFunction

Finds all reflection properties for an object and it's ancestors,

Instantiate static properties

Source

src/Reflect.php:22-125