PHP Interface PhpBench\Storage\DriverInterface

Datei anzeigen Open project: dantleech/phpbench

Public Methods

Method Description
delete ( $runId ) Delete the run with the given UUID.
fetch ( integer $runId ) : SuiteCollection Return the suite collection with the given run ID.
has ( $runId ) Return true if the driver has the given run ID.
history ( ) : HistoryIteratorInterface Return a history iterator of HistoryEntries in descending chronological order.
query ( PhpBench\Expression\Constraint\Constraint $constraint ) : SuiteCollection Query the storage and return a SuiteCollection.
store ( SuiteCollection $collection ) Store the given SuiteCollection.

Method Details

delete() public method

Delete the run with the given UUID.
public delete ( $runId )

fetch() public method

If no suite is found an exception will be thrown.
public fetch ( integer $runId ) : SuiteCollection
$runId integer
return PhpBench\Model\SuiteCollection

has() public method

Return true if the driver has the given run ID.
public has ( $runId )

history() public method

Return a history iterator of HistoryEntries in descending chronological order.
public history ( ) : HistoryIteratorInterface
return HistoryIteratorInterface

query() public method

Query the storage and return a SuiteCollection.
public query ( PhpBench\Expression\Constraint\Constraint $constraint ) : SuiteCollection
$constraint PhpBench\Expression\Constraint\Constraint
return PhpBench\Model\SuiteCollection

store() public method

Store the given SuiteCollection.
public store ( SuiteCollection $collection )
$collection PhpBench\Model\SuiteCollection