This commit is contained in:
2021-04-29 10:35:11 +08:00
parent 0425c47271
commit 793cfa4266
2 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -19,8 +19,9 @@ use Snowflake\Snowflake;
/** /**
* Port constructor. * Port constructor.
* @param int $port * @param int $port
* @param int $mode
*/ */
public function __construct(public int $port) public function __construct(public int $port, public int $mode = SWOOLE_SOCK_TCP)
{ {
} }
+15
View File
@@ -0,0 +1,15 @@
<?php
namespace Annotation;
interface Porters
{
#[Port(port: 999)]
public function process();
}