From 793cfa426645ff52e601058bc14960f58b5b6f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 29 Apr 2021 10:35:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Annotation/Port.php | 3 ++- Annotation/Porters.php | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 Annotation/Porters.php diff --git a/Annotation/Port.php b/Annotation/Port.php index beeb0bcb..7042a065 100644 --- a/Annotation/Port.php +++ b/Annotation/Port.php @@ -19,8 +19,9 @@ use Snowflake\Snowflake; /** * Port constructor. * @param int $port + * @param int $mode */ - public function __construct(public int $port) + public function __construct(public int $port, public int $mode = SWOOLE_SOCK_TCP) { } diff --git a/Annotation/Porters.php b/Annotation/Porters.php new file mode 100644 index 00000000..267e0459 --- /dev/null +++ b/Annotation/Porters.php @@ -0,0 +1,15 @@ +