1 | <?php |
||
22 | trait NotificationReadTrait |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * |
||
27 | * @param BaseUserModel $user |
||
28 | * @param {$this->notificationClass} $notification |
||
|
|||
29 | * @return boolean False if notification was marked as read or it didn't exist. |
||
30 | */ |
||
31 | 3 | public static function read($user, $notification) |
|
42 | |||
43 | /** |
||
44 | * |
||
45 | * @param BaseUserModel $user |
||
46 | * @param {$this->notificationClass} $notification |
||
47 | * @return boolean True if notification was marked as unread or it didn't exist. |
||
48 | */ |
||
49 | 1 | public static function unread($user, $notification) |
|
60 | |||
61 | /** |
||
62 | * Vacuum all the invalid notification read records. |
||
63 | * @param BaseUserModel $user |
||
64 | * @param string $notificationClass |
||
65 | * @return integer The sum of notification read records vacuumed. |
||
66 | */ |
||
67 | 2 | public static function vacuum($user, $notificationClass) |
|
79 | } |
||
80 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.