Method |
Description |
|
__construct ( array $results = [] ) |
|
|
getMetric ( string $class, string $metric ) : mixed |
Return the named metric for the given result class. |
|
getMetricOrDefault ( string $class, string $metric, mixed $default = null ) : mixed |
Return the named metric or the default value if the *result class* has
not been set. |
|
getResult ( string $class ) : PhpBench\Model\ResultInterface |
Return the result of the given class, throw an exception
if it does not exist. |
|
getResults ( ) : PhpBench\Model\ResultInterface[] |
Return all results. |
|
hasResult ( string $class ) : boolean |
Return true if there is a result for the given class name. |
|
setResult ( PhpBench\Model\ResultInterface $result ) |
Add a result to the collection. |
|