HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/gggg.komma.nl/vendor/phpbench/phpbench/lib/Storage/DriverInterface.php
<?php

/*
 * This file is part of the PHPBench package
 *
 * (c) Daniel Leech <daniel@dantleech.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 */

namespace PhpBench\Storage;

use PhpBench\Expression\Constraint\Constraint;
use PhpBench\Model\SuiteCollection;

/**
 * Storage driver interface.
 */
interface DriverInterface
{
    /**
     * Store the given SuiteCollection.
     *
     * Optionally return a message which should be displayed
     * by the CLI interface after successful storage.
     *
     * @param SuiteCollection $collection
     *
     * @return string|null
     */
    public function store(SuiteCollection $collection);

    /**
     * Query the storage and return a SuiteCollection.
     *
     * @param Constraint $constraint
     *
     * @return SuiteCollection
     */
    public function query(Constraint $constraint);

    /**
     * Return the suite collection with the given run ID.
     * If no suite is found an exception will be thrown.
     *
     * @param int $runId
     *
     * @throws \InvalidArgumentException
     *
     * @return SuiteCollection
     */
    public function fetch($runId);

    /**
     * Return true if the driver has the given run ID.
     */
    public function has($runId);

    /**
     * Delete the run with the given UUID.
     */
    public function delete($runId);

    /**
     * Return a history iterator of HistoryEntries in descending
     * chronological order.
     *
     * @return HistoryIteratorInterface
     */
    public function history();
}