swooletw /
laravel-swoole
| 1 | <?php |
||
| 2 | |||
| 3 | namespace SwooleTW\Http\Websocket\Rooms; |
||
| 4 | |||
| 5 | interface RoomContract |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Rooms key |
||
| 9 | * |
||
| 10 | * @const string |
||
| 11 | */ |
||
| 12 | public const ROOMS_KEY = 'rooms'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Descriptors key |
||
| 16 | * |
||
| 17 | * @const string |
||
| 18 | */ |
||
| 19 | public const DESCRIPTORS_KEY = 'fds'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Do some init stuffs before workers started. |
||
| 23 | * |
||
| 24 | * @return \SwooleTW\Http\Websocket\Rooms\RoomContract |
||
| 25 | */ |
||
| 26 | public function prepare(): RoomContract; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Add multiple socket fds to a room. |
||
| 30 | * |
||
| 31 | * @param int fd |
||
|
0 ignored issues
–
show
|
|||
| 32 | * @param array|string rooms |
||
|
0 ignored issues
–
show
The type
SwooleTW\Http\Websocket\Rooms\rooms was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 33 | */ |
||
| 34 | public function add(int $fd, $rooms); |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Delete multiple socket fds from a room. |
||
| 38 | * |
||
| 39 | * @param int fd |
||
| 40 | * @param array|string rooms |
||
| 41 | */ |
||
| 42 | public function delete(int $fd, $rooms); |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get all sockets by a room key. |
||
| 46 | * |
||
| 47 | * @param string room |
||
| 48 | * |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | public function getClients(string $room); |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get all rooms by a fd. |
||
| 55 | * |
||
| 56 | * @param int fd |
||
| 57 | * |
||
| 58 | * @return array |
||
| 59 | */ |
||
| 60 | public function getRooms(int $fd); |
||
| 61 | } |
||
| 62 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths