Issues (192)

src/Contracts/AppManager.php (1 issue)

1
<?php
2
3
namespace BeyondCode\LaravelWebSockets\Contracts;
4
5
use BeyondCode\LaravelWebSockets\Apps\App;
6
7
interface AppManager
8
{
9
    /**
10
     * Get all apps.
11
     *
12
     * @return array[\BeyondCode\LaravelWebSockets\Apps\App]
0 ignored issues
show
Documentation Bug introduced by
The doc comment array[\BeyondCode\LaravelWebSockets\Apps\App] at position 1 could not be parsed: Expected ']' at position 1, but found '['.
Loading history...
13
     */
14
    public function all(): array;
15
16
    /**
17
     * Get app by id.
18
     *
19
     * @param  string|int  $appId
20
     * @return \BeyondCode\LaravelWebSockets\Apps\App|null
21
     */
22
    public function findById($appId): ?App;
23
24
    /**
25
     * Get app by app key.
26
     *
27
     * @param  string  $appKey
28
     * @return \BeyondCode\LaravelWebSockets\Apps\App|null
29
     */
30
    public function findByKey($appKey): ?App;
31
32
    /**
33
     * Get app by secret.
34
     *
35
     * @param  string  $appSecret
36
     * @return \BeyondCode\LaravelWebSockets\Apps\App|null
37
     */
38
    public function findBySecret($appSecret): ?App;
39
}
40