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