Reflections
class Reflections extends Singleton (View source)
Simple class that caches reflections of classes.
Methods
string
get_called_class()
Similar to a get_called_class() for a child class to invoke.
from Singleton
add(string $class = null)
Instantiates a new ReflectionClass for the given class.
void
destroy(string $class)
Destroys the cached ReflectionClass.
mixed
get(string $class = null)
Get a cached ReflectionClass.
Details
final static object
instance()
Static method for instantiating a singleton object.
final protected string
get_called_class()
Similar to a get_called_class() for a child class to invoke.
at line 28
Reflections
add(string $class = null)
Instantiates a new ReflectionClass for the given class.
at line 46
void
destroy(string $class)
Destroys the cached ReflectionClass.
Put this here mainly for testing purposes.
at line 59
mixed
get(string $class = null)
Get a cached ReflectionClass.