Doctrine\Common\Persistence\Mapping\ReflectionService
Very simple reflection service abstraction.
This is required inside metadata layers that may require either
static or runtime reflection.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
interface ReflectionService
{
- // methods
- public array getParentClasses()
- public string getClassShortName()
- public string getClassNamespace()
- public ReflectionClass|null getClass()
- public ReflectionProperty|null getAccessibleProperty()
- public bool hasPublicMethod()
Methods
public
- getAccessibleProperty() — Return an accessible property (setAccessible(true)) or null.
- getClass() — Return a reflection class instance or null
- getClassNamespace()
- getClassShortName() — Return the shortname of a class.
- getParentClasses() — Return an array of the parent classes (not interfaces) for the given class.
- hasPublicMethod() — Check if the class have a public method with the given name.