Class Details

Simple class that caches reflections of classes.

Class Methods

public Reflections add ( [ string $class = null] )

Instantiates a new ReflectionClass for the given class.

  • string $class - Name of a class
  • return: so you can chain calls like Reflections::instance()->add('class')->get()
public void destroy ( string $class )

Destroys the cached ReflectionClass.

  • string $class - Name of a class.

Put this here mainly for testing purposes.

public mixed get ( [ string $class = null] )

Get a cached ReflectionClass.

  • string $class - Optional name of a class
  • return: null or a ReflectionClass instance
  • throws: ActiveRecordException if class was not found