]> BookStack Code Mirror - bookstack/blob - app/Users/UserWatchOptions.php
Notifications: Extracted watch options, updated UI further
[bookstack] / app / Users / UserWatchOptions.php
1 <?php
2
3 namespace BookStack\Users;
4
5 class UserWatchOptions
6 {
7     protected static array $levelByOption = [
8         'default' => -1,
9         'ignore' => 0,
10         'new' => 1,
11         'updates' => 2,
12         'comments' => 3,
13     ];
14
15     /**
16      * @return string[]
17      */
18     public static function getAvailableOptionNames(): array
19     {
20         return array_keys(static::$levelByOption);
21     }
22 }