-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7be2720
commit 9cee4f7
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
src/A1comms/GaeSupportLaravel/Integration/Debugbar/Storage/NullStorage.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} | ||
} |