PHP Класс PhpBench\Report\Generator\TableGenerator

NOTE: This class could be improved, and perhaps even generalized.
Наследование: implements PhpBench\Report\GeneratorInterface, implements PhpBench\Console\OutputAwareInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
configure ( Symfony\Component\OptionsResolver\OptionsResolver $options )
generate ( SuiteCollection $suiteCollection, Config $config )
setOutput ( Symfony\Component\Console\Output\OutputInterface $output )

Приватные методы

Метод Описание
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.

Описание методов

configure() публичный метод

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

generate() публичный метод

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

setOutput() публичный метод

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