PHP Class PHPUnit_Util_Class, qcodo

Author: Sebastian Bergmann ([email protected])
Show file Open project: qcodo/qcodo Class Usage Examples

Protected Properties

Property Type Description
$buffer

Public Methods

Method Description
collectEnd ( ) : array Stops the collection of loaded classes and returns the names of the loaded classes.
collectStart ( ) Starts the collection of loaded classes.
getHierarchy ( string $className, boolean $asReflectionObjects = FALSE ) : array Returns the class hierarchy for a given class.
getMethodParameters ( ReflectionFunction | ReflectionMethod $method, boolean $forCall = FALSE ) : string Returns the parameters of a function or method.
getObjectAttribute ( object $object, string $attributeName ) : mixed Returns the value of an object's attribute.
getPackageInformation ( string $className, string $docComment ) : array Returns the package information of a user-defined class.
getStaticAttribute ( string $className, string $attributeName ) : mixed Returns the value of a static attribute.
parseFullyQualifiedClassName ( string $className ) : array

Protected Methods

Method Description
arrayToName ( array $parts, string $join = '\' ) : string Returns the package information of a user-defined class.

Method Details

arrayToName() protected static method

Returns the package information of a user-defined class.
protected static arrayToName ( array $parts, string $join = '\' ) : string
$parts array
$join string
return string

collectEnd() public static method

Stops the collection of loaded classes and returns the names of the loaded classes.
public static collectEnd ( ) : array
return array

collectStart() public static method

Starts the collection of loaded classes.
public static collectStart ( )

getHierarchy() public static method

Returns the class hierarchy for a given class.
public static getHierarchy ( string $className, boolean $asReflectionObjects = FALSE ) : array
$className string
$asReflectionObjects boolean
return array

getMethodParameters() public static method

Returns the parameters of a function or method.
public static getMethodParameters ( ReflectionFunction | ReflectionMethod $method, boolean $forCall = FALSE ) : string
$method ReflectionFunction | ReflectionMethod
$forCall boolean
return string

getObjectAttribute() public static method

This also works for attributes that are declared protected or private.
public static getObjectAttribute ( object $object, string $attributeName ) : mixed
$object object
$attributeName string
return mixed

getPackageInformation() public static method

Returns the package information of a user-defined class.
public static getPackageInformation ( string $className, string $docComment ) : array
$className string
$docComment string
return array

getStaticAttribute() public static method

This also works for attributes that are declared protected or private.
public static getStaticAttribute ( string $className, string $attributeName ) : mixed
$className string
$attributeName string
return mixed

parseFullyQualifiedClassName() public static method

public static parseFullyQualifiedClassName ( string $className ) : array
$className string
return array

Property Details

$buffer protected static property

protected static $buffer