| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace App\Module\UrausSys\Events;
- use App\Module\UrausSys\Models\ReceiveAddress;
- use Illuminate\Broadcasting\InteractsWithSockets;
- use Illuminate\Foundation\Events\Dispatchable;
- use Illuminate\Queue\SerializesModels;
- class TestEvent
- {
- use Dispatchable, InteractsWithSockets, SerializesModels;
- /**
- * 测试数据
- *
- * @var ReceiveAddress
- */
- public ReceiveAddress $test;
- /**
- * 事件类型
- *
- * @var string
- */
- public string $type;
- /**
- * 创建事件实例
- *
- * @param ReceiveAddress $test
- * @param string $type
- * @return void
- */
- public function __construct(ReceiveAddress $test, string $type)
- {
- $this->test = $test;
- $this->type = $type;
- }
- }
|