1 | <?php |
||
5 | class ConfigAppManager implements AppManager |
||
6 | { |
||
7 | /** |
||
8 | * The list of apps. |
||
9 | * |
||
10 | * @var \Illuminate\Support\Collection |
||
11 | */ |
||
12 | protected $apps; |
||
13 | |||
14 | /** |
||
15 | * Initialize the class. |
||
16 | * |
||
17 | * @return void |
||
|
|||
18 | */ |
||
19 | public function __construct() |
||
23 | |||
24 | /** |
||
25 | * Get all apps. |
||
26 | * |
||
27 | * @return array[\BeyondCode\LaravelWebSockets\Apps\App] |
||
28 | */ |
||
29 | public function all(): array |
||
37 | |||
38 | /** |
||
39 | * Get app by id. |
||
40 | * |
||
41 | * @param mixed $appId |
||
42 | * @return \BeyondCode\LaravelWebSockets\Apps\App|null |
||
43 | */ |
||
44 | public function findById($appId): ?App |
||
52 | |||
53 | /** |
||
54 | * Get app by app key. |
||
55 | * |
||
56 | * @param mixed $appKey |
||
57 | * @return \BeyondCode\LaravelWebSockets\Apps\App|null |
||
58 | */ |
||
59 | public function findByKey($appKey): ?App |
||
67 | |||
68 | /** |
||
69 | * Get app by secret. |
||
70 | * |
||
71 | * @param mixed $appSecret |
||
72 | * @return \BeyondCode\LaravelWebSockets\Apps\App|null |
||
73 | */ |
||
74 | public function findBySecret($appSecret): ?App |
||
82 | |||
83 | /** |
||
84 | * Map the app into an App instance. |
||
85 | * |
||
86 | * @param array|null $app |
||
87 | * @return \BeyondCode\LaravelWebSockets\Apps\App|null |
||
88 | */ |
||
89 | protected function instantiate(?array $appAttributes): ?App |
||
121 | } |
||
122 |
Adding a
@return
annotation 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.