StaticReflectionService
class StaticReflectionService implements ReflectionService (View source)
PHP Runtime Reflection Service.
Methods
string[]
getParentClasses(string $className)
Returns an array of the parent classes (not interfaces) for the given class.
getClassShortName(string $className)
Returns the shortname of a class.
getClassNamespace(string $className)
No description
getClass(string $className)
Returns a reflection class instance or null.
getAccessibleProperty(string $className, string $propertyName)
Returns an accessible property (setAccessible(true)) or null.
hasPublicMethod(string $className, string $methodName)
Checks if the class have a public method with the given name.
Details
at line 22
string[]
getParentClasses(string $className)
Returns an array of the parent classes (not interfaces) for the given class.
at line 30
getClassShortName(string $className)
Returns the shortname of a class.
at line 41
getClassNamespace(string $className)
at line 55
getClass(string $className)
Returns a reflection class instance or null.
at line 63
getAccessibleProperty(string $className, string $propertyName)
Returns an accessible property (setAccessible(true)) or null.
at line 71
hasPublicMethod(string $className, string $methodName)
Checks if the class have a public method with the given name.