PhpBench\Formatter\Formatter::registerClass PHP Method

registerClass() public method

Each format definition should be of the form: [ $formatterName, { $options1 => $value 1 } ] i.e. a 2 element tuple with a scalar (the name of the formatter) and an associative array of formatter options.
public registerClass ( string $name, array $formatDefinitions )
$name string
$formatDefinitions array
    public function registerClass($name, array $formatDefinitions)
    {
        $this->classes[$name] = $formatDefinitions;
    }