. */ namespace Doctrine\Common\Persistence\Mapping; /** * Very simple reflection service abstraction. * * This is required inside metadata layers that may require either * static or runtime reflection. * * @author Benjamin Eberlei */ interface ReflectionService { /** * Return an array of the parent classes (not interfaces) for the given class. * * @param string $class * @return array */ function getParentClasses($class); /** * Return the shortname of a class. * * @param string $class * @return string */ function getClassShortName($class); /** * @param string $class * @return string */ function getClassNamespace($class); /** * Return a reflection class instance or null * * @param string $class * @return ReflectionClass|null */ function getClass($class); /** * Return an accessible property (setAccessible(true)) or null. * * @param string $class * @param string $property * @return ReflectionProperty|null */ function getAccessibleProperty($class, $property); /** * Check if the class have a public method with the given name. * * @param mixed $class * @param mixed $method * @return bool */ function hasPublicMethod($class, $method); }