Handler
        Handler.php
                :
        14
                
    
            Interface
                Methods¶
                
bulkUpdateUserNotifications()
            ¶
    
        
        Handler.php
                :
        41
                
    
        | 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $ownerId | int | - | - | 
| $updateStruct | UpdateStruct | - | - | 
| $pendingOnly | bool | false | - | 
| $notificationIds | array<string|int, int> | [] | - | 
Return values
array<string|int, int>
                
countNotifications()
            ¶
    
        
        Handler.php
                :
        79
                
    
        | 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $currentUserId | int | - | - | 
| $query | NotificationQuery|null | null | - | 
Return values
int
                
countPendingNotifications()
            ¶
    
        
        Handler.php
                :
        55
                
    
        Count users unread Notifications.
| 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $ownerId | int | - | - | 
Return values
int
                
createNotification()
            ¶
    
        
        Handler.php
                :
        23
                
    
        Store Notification ValueObject in persistent storage.
| 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $createStruct | CreateStruct | - | - | 
Return values
                
delete()
            ¶
    
        
        Handler.php
                :
        84
                
    
        | 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notification | Notification | - | - | 
                
findUserNotifications()
            ¶
    
        
        Handler.php
                :
        74
                
    
        | 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $userId | int | - | - | 
| $query | NotificationQuery|null | null | - | 
Return values
array<string|int, Notification>
                
getNotificationById()
            ¶
    
        
        Handler.php
                :
        64
                
    
        Get Notification by its id.
| 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notificationId | int | - | - | 
Return values
                
loadUserNotifications()
            ¶
    
        
        Handler.php
                :
        69
                
    
        | 
                     | 
                
                    
                     | 
            
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $userId | int | - | - | 
| $offset | int | - | - | 
| $limit | int | - | - | 
Return values
array<string|int, Notification>
                
updateNotification()
            ¶
    
        
        Handler.php
                :
        34
                
    
        Update Notification ValueObject in persistent storage.
| 
                     | 
                
                    
                     | 
            
There's no edit feature but it's essential to mark Notification as read.
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notification | Notification | - | - | 
| $updateStruct | UpdateStruct | - | - |