for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
* @package Quantum
* @author Arman Ag. <[email protected]>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 2.9.5
*/
namespace Quantum\Debugger;
use Quantum\Contracts\StorageInterface;
* Class DebuggerStore
* @package Quantum\Debugger
class DebuggerStore implements StorageInterface
{
private static $store = [];
* @param array $keys
* @return void
public function init(array $keys)
foreach ($keys as $key) {
if (!isset(self::$store[$key])) {
self::$store[$key] = [];
}
* @return array[]
public function all(): array
return self::$store;
* @param string $key
* @return bool
public function has(string $key): bool
return isset(self::$store[$key]);
* @return array
public function get(string $key): array
return self::$store[$key] ?? [];
* @param mixed $value
public function set(string $key, $value)
if (is_array($value)) {
foreach ($value as $level => $data) {
self::$store[$key][] = [$level => $data];
public function delete(string $key)
if ($this->has($key)) {
public function flush()
self::$store = [];