Skip to content

Commit

Permalink
DebugBar: NullStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacarpet committed Sep 25, 2024
1 parent 7be2720 commit 9cee4f7
Showing 1 changed file with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php

declare(strict_types=1);

namespace A1comms\GaeSupportLaravel\Integration\Debugbar\Storage;

use DebugBar\Storage\StorageInterface;

class NullStorage implements StorageInterface
{
/**
* Saves collected data.
*
* @param string $id
* @param string $data
*/
public function save($id, $data): void {}

/**
* Returns collected data with the specified id.
*
* @param string $id
*/
public function get($id): array
{
return [];
}

/**
* Returns a metadata about collected data.
*
* @param int $max
* @param int $offset
*/
public function find(array $filters = [], $max = 20, $offset = 0): array
{
return [];
}

/**
* Clears all the collected data.
*/
public function clear(): void {}
}

0 comments on commit 9cee4f7

Please sign in to comment.