ClassUtils
in package
Class and reflection related functionality for objects that might or not be proxy objects at the moment.
Table of Contents
Methods
- generateProxyClassName() : string
- Given a class name and a proxy namespace returns the proxy name.
- getClass() : string
- Gets the real class name of an object (even if its a proxy).
- getParentClass() : string
- Gets the real parent class name of a class or object.
- getRealClass() : string
- Gets the real class name of a class name that could be a proxy.
- newReflectionClass() : ReflectionClass
- Creates a new reflection class.
- newReflectionObject() : ReflectionClass
- Creates a new reflection object.
Methods
generateProxyClassName()
Given a class name and a proxy namespace returns the proxy name.
public
static generateProxyClassName(string $className, string $proxyNamespace) : string
Parameters
- $className : string
- $proxyNamespace : string
Tags
Return values
stringgetClass()
Gets the real class name of an object (even if its a proxy).
public
static getClass(object $object) : string
Parameters
- $object : object
Tags
Return values
stringgetParentClass()
Gets the real parent class name of a class or object.
public
static getParentClass(string $className) : string
Parameters
- $className : string
Tags
Return values
stringgetRealClass()
Gets the real class name of a class name that could be a proxy.
public
static getRealClass(string $className) : string
Parameters
- $className : string
Tags
Return values
stringnewReflectionClass()
Creates a new reflection class.
public
static newReflectionClass(string $className) : ReflectionClass
Parameters
- $className : string
Tags
Return values
ReflectionClassnewReflectionObject()
Creates a new reflection object.
public
static newReflectionObject(object $object) : ReflectionClass
Parameters
- $object : object