Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2declare(strict_types=1);
3/**
4 * Pop PHP Framework (https://www.popphp.org/)
5 *
6 * @link       https://github.com/popphp/popphp-framework
7 * @author     Nick Sagona, III <dev@noladev.com>
8 * @copyright  Copyright (c) 2009-2027 NOLA Interactive, LLC.
9 * @license    https://www.popphp.org/license     New BSD License
10 */
11
12/**
13 * @namespace
14 */
15namespace Pop\Debug\Storage;
16
17use Pop\Debug\Handler\AbstractHandler;
18
19/**
20 * Debug storage interface
21 *
22 * @category   Pop
23 * @package    Pop\Debug
24 * @author     Nick Sagona, III <dev@noladev.com>
25 * @copyright  Copyright (c) 2009-2027 NOLA Interactive, LLC.
26 * @license    https://www.popphp.org/license     New BSD License
27 * @version    4.0.0
28 */
29interface StorageInterface
30{
31
32    /**
33     * Prepare events
34     *
35     * @param  string          $id
36     * @param  string          $name
37     * @param  AbstractHandler $handler
38     * @return array
39     */
40    public function prepareEvents(string $id, string $name, AbstractHandler $handler): array;
41
42    /**
43     * Save debug data
44     *
45     * @param  string          $id
46     * @param  string          $name
47     * @param  AbstractHandler $handler
48     * @return void
49     */
50    public function save(string $id, string $name, AbstractHandler $handler): void;
51
52    /**
53     * Clear all debug data
54     *
55     * @return void
56     */
57    public function clear(): void;
58
59}