PHP Class PHPUnit_Util_Class, qcodo

Author: Sebastian Bergmann ([email protected])
Afficher le fichier Open project: qcodo/qcodo Class Usage Examples

Protected Properties

Свойство Type Description
$buffer

Méthodes publiques

Méthode 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

Méthodes protégées

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

Method Details

arrayToName() protected static méthode

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

collectEnd() public static méthode

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

collectStart() public static méthode

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

getHierarchy() public static méthode

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

getMethodParameters() public static méthode

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

getObjectAttribute() public static méthode

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

getPackageInformation() public static méthode

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

getStaticAttribute() public static méthode

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

parseFullyQualifiedClassName() public static méthode

public static parseFullyQualifiedClassName ( string $className ) : array
$className string
Résultat array

Property Details

$buffer protected_oe static_oe property

protected static $buffer