2020-03-02 16:14:20 +08:00
|
|
|
<?php
|
2022-03-15 18:05:33 +08:00
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2020-03-02 16:14:20 +08:00
|
|
|
/**
|
|
|
|
|
* Created by PhpStorm.
|
|
|
|
|
* User: jerry
|
|
|
|
|
* Date: 2018/2/25
|
|
|
|
|
* Time: 下午11:11
|
|
|
|
|
*/
|
|
|
|
|
|
2020-08-31 10:11:06 +08:00
|
|
|
namespace ZM\Store;
|
2020-03-02 16:14:20 +08:00
|
|
|
|
2022-04-05 00:24:37 +08:00
|
|
|
use ZM\Context\ContextInterface;
|
|
|
|
|
|
2020-03-02 16:14:20 +08:00
|
|
|
class ZMBuf
|
|
|
|
|
{
|
2022-04-05 00:24:37 +08:00
|
|
|
/**
|
|
|
|
|
* 注册的事件
|
|
|
|
|
*
|
|
|
|
|
* @deprecated 不再使用
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
2020-03-02 16:14:20 +08:00
|
|
|
public static $events = [];
|
2022-03-15 18:05:33 +08:00
|
|
|
|
2022-04-05 00:24:37 +08:00
|
|
|
/**
|
|
|
|
|
* 全局单例容器
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
2020-04-29 15:29:56 +08:00
|
|
|
public static $instance = [];
|
2022-03-15 18:05:33 +08:00
|
|
|
|
2022-04-05 00:24:37 +08:00
|
|
|
/**
|
|
|
|
|
* 上下文容器
|
|
|
|
|
*
|
|
|
|
|
* @var array<int, ContextInterface>
|
|
|
|
|
*/
|
2020-05-23 17:23:29 +08:00
|
|
|
public static $context_class = [];
|
2022-03-15 18:05:33 +08:00
|
|
|
|
2022-04-05 00:24:37 +08:00
|
|
|
/**
|
|
|
|
|
* 终端输入流?
|
|
|
|
|
*
|
|
|
|
|
* 目前等用于 STDIN
|
|
|
|
|
*
|
|
|
|
|
* @var resource
|
|
|
|
|
*/
|
2022-03-15 18:05:33 +08:00
|
|
|
public static $terminal;
|
2020-03-29 16:29:02 +08:00
|
|
|
}
|