PHP Class PhpBench\Report\Generator\TableGenerator

NOTE: This class could be improved, and perhaps even generalized.
Inheritance: implements PhpBench\Report\GeneratorInterface, implements PhpBench\Console\OutputAwareInterface
Afficher le fichier Open project: dantleech/phpbench Class Usage Examples

Méthodes publiques

Méthode Description
configure ( Symfony\Component\OptionsResolver\OptionsResolver $options )
generate ( SuiteCollection $suiteCollection, Config $config )
setOutput ( Symfony\Component\Console\Output\OutputInterface $output )

Private Methods

Méthode Description
buildTable ( SuiteCollection $suiteCollection, Config $config ) : array Construct the initial table from the SuiteCollection.
generateDocument ( array $tables, Config $config ) : PhpBench\Dom\Document Generate the report DOM document to pass to the report renderer.
getClassShortName ( string $fullName ) Return the short name of a fully qualified class name.
processBreak ( array $table, Config $config ) : array Process breaks (split large table into smaller tables).
processCols ( array $tables, Config $config ) : array Remove unwanted columns from the tables.
processCompare ( array $tables, Config $config ) : array Process the compare feature.
processDiffs ( array $tables, Config $config ) : array Calculate the diff column if it is displayed.
processSort ( array $table, Config $config ) : array Process the sorting, also break sorting.
resolveCompareColumnName ( Row $row, $name, integer $index = 1 ) : string Recursively resolve a comparison column - find a column name that doesn't already exist by adding and incrementing an index.

Method Details

configure() public méthode

public configure ( Symfony\Component\OptionsResolver\OptionsResolver $options )
$options Symfony\Component\OptionsResolver\OptionsResolver

generate() public méthode

public generate ( SuiteCollection $suiteCollection, Config $config )
$suiteCollection PhpBench\Model\SuiteCollection
$config PhpBench\Registry\Config

setOutput() public méthode

public setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface