From b32a9270cb1150384bab294c4bc7e5b5d3e08e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=90=E6=82=A0=E6=97=8F?= Date: Fri, 18 Jan 2019 10:20:38 +0800 Subject: [PATCH] Update TableManager.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加 Table 常量字段,实际使用时可不需要再引入 Swoole\Table 获取常量 --- src/TableManager.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/TableManager.php b/src/TableManager.php index 10aa804..878126d 100644 --- a/src/TableManager.php +++ b/src/TableManager.php @@ -14,6 +14,10 @@ class TableManager { use Singleton; + + const TYPE_INT = Table::TYPE_INIT; + const TYPE_FLOAT = Table::TYPE_FLOAT; + const TYPE_STRING = Table::TYPE_STRING; private $list = []; @@ -43,4 +47,4 @@ public function get($name):?Table return null; } } -} \ No newline at end of file +}