初始化
This commit is contained in:
15
src/conduit/driver/socket/Event.php
Normal file
15
src/conduit/driver/socket/Event.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace think\worker\conduit\driver\socket;
|
||||
|
||||
class Event
|
||||
{
|
||||
public function __construct(public $name, public $data)
|
||||
{
|
||||
}
|
||||
|
||||
public static function create($name, $data)
|
||||
{
|
||||
return new self($name, $data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user