for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license MIT
* @author Igor Sorokin <[email protected]>
*/
namespace Dspbee\Core;
* Static key => value storage.
*
* Class Application
* @package Dspbee\Core
class Storage
{
* Save data in storage.
* @param string $key
* @param mixed $value
public static function set($key, $value)
self::$storage[$key] = $value;
}
* Get data by key.
* @return mixed|null
public static function get($key)
return self::$storage[$key] ?? null;
private static $storage;