改名
This commit is contained in:
+2
-1
@@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace Annotation;
|
||||||
|
|
||||||
|
|
||||||
|
interface Porters
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
#[Port(port: 999)]
|
||||||
|
public function process();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user