PHP Class PhpBench\Formatter\FormatRegistry

Show file Open project: dantleech/phpbench Class Usage Examples

Public Methods

Method Description
get ( string $name ) : PhpBench\Formatter\FormatInterface Return the named format class.
register ( string $name, PhpBench\Formatter\FormatInterface $format ) Register a format class.

Method Details

get() public method

Return the named format class.
public get ( string $name ) : PhpBench\Formatter\FormatInterface
$name string
return PhpBench\Formatter\FormatInterface

register() public method

Register a format class.
public register ( string $name, PhpBench\Formatter\FormatInterface $format )
$name string
$format PhpBench\Formatter\FormatInterface