| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class SwooleTaskConnector implements ConnectorInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Swoole Server Instance |
||
| 16 | * |
||
| 17 | * @var \Swoole\Http\Server |
||
| 18 | */ |
||
| 19 | protected $swoole; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create a new Swoole Async task connector instance. |
||
| 23 | * |
||
| 24 | * @param \Swoole\Http\Server $swoole |
||
| 25 | * |
||
| 26 | * @return void |
||
| 27 | */ |
||
| 28 | public function __construct($swoole) |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Establish a queue connection. |
||
| 35 | * |
||
| 36 | * @param array $config |
||
| 37 | * |
||
| 38 | * @return \Illuminate\Contracts\Queue\Queue |
||
| 39 | */ |
||
| 40 | public function connect(array $config) |
||
| 45 |