1 | <?php |
||
7 | class ConfigAppManager implements AppManager |
||
8 | { |
||
9 | /** |
||
10 | * The list of apps. |
||
11 | * |
||
12 | * @var \Illuminate\Support\Collection |
||
13 | */ |
||
14 | protected $apps; |
||
15 | |||
16 | /** |
||
17 | * Initialize the class. |
||
18 | * |
||
19 | * @return void |
||
|
|||
20 | */ |
||
21 | public function __construct() |
||
25 | |||
26 | /** |
||
27 | * Get all apps. |
||
28 | * |
||
29 | * @return array[\BeyondCode\LaravelWebSockets\Apps\App] |
||
30 | */ |
||
31 | public function all(): array |
||
39 | |||
40 | /** |
||
41 | * Get app by id. |
||
42 | * |
||
43 | * @param string|int $appId |
||
44 | * @return \BeyondCode\LaravelWebSockets\Apps\App|null |
||
45 | */ |
||
46 | public function findById($appId): ?App |
||
52 | |||
53 | /** |
||
54 | * Get app by app key. |
||
55 | * |
||
56 | * @param string $appKey |
||
57 | * @return \BeyondCode\LaravelWebSockets\Apps\App|null |
||
58 | */ |
||
59 | public function findByKey($appKey): ?App |
||
65 | |||
66 | /** |
||
67 | * Get app by secret. |
||
68 | * |
||
69 | * @param string $appSecret |
||
70 | * @return \BeyondCode\LaravelWebSockets\Apps\App|null |
||
71 | */ |
||
72 | public function findBySecret($appSecret): ?App |
||
78 | |||
79 | /** |
||
80 | * Map the app into an App instance. |
||
81 | * |
||
82 | * @param array|null $app |
||
83 | * @return \BeyondCode\LaravelWebSockets\Apps\App|null |
||
84 | */ |
||
85 | protected function convertIntoApp(?array $appAttributes): ?App |
||
117 | } |
||
118 |
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.