PHP Class PhpBench\Benchmark\Remote\Reflector

Show file Open project: dantleech/phpbench Class Usage Examples

Public Methods

Method Description
__construct ( Launcher $launcher )
getParameterSets ( string $file, string[] $paramProviders ) : array Return the parameter sets for the benchmark container in the given file.
reflect ( string $file ) : ReflectionHierarchy Return an array of ReflectionClass instances for the given file. The first ReflectionClass is the class contained in the given file (there may be only one) additional ReflectionClass instances are the ancestors of this first class.

Private Methods

Method Description
getClassNameFromFile ( string $file ) : string Return the class name from a file.

Method Details

__construct() public method

public __construct ( Launcher $launcher )
$launcher Launcher

getParameterSets() public method

Return the parameter sets for the benchmark container in the given file.
public getParameterSets ( string $file, string[] $paramProviders ) : array
$file string
$paramProviders string[]
return array

reflect() public method

Return an array of ReflectionClass instances for the given file. The first ReflectionClass is the class contained in the given file (there may be only one) additional ReflectionClass instances are the ancestors of this first class.
public reflect ( string $file ) : ReflectionHierarchy
$file string
return ReflectionHierarchy