| 1 | <?php |
||
| 7 | class RedisChannelManager extends ArrayChannelManager |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The replicator driver. |
||
| 11 | * |
||
| 12 | * @var \BeyondCode\LaravelWebSockets\PubSub\ReplicationInterface |
||
| 13 | */ |
||
| 14 | protected $replicator; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Initialize the channel manager. |
||
| 18 | * |
||
| 19 | * @return void |
||
|
|
|||
| 20 | */ |
||
| 21 | public function __construct() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get the connections count across multiple servers. |
||
| 28 | * |
||
| 29 | * @param mixed $appId |
||
| 30 | * @return int|\React\Promise\PromiseInterface |
||
| 31 | */ |
||
| 32 | public function getGlobalConnectionsCount($appId) |
||
| 36 | } |
||
| 37 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.