Handler
        Handler.php
                :
        13
                 
    
            Interface
                Methods¶
                 countNotifications()
            ¶
countNotifications()
            ¶
    
        
        Handler.php
                :
        67
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $currentUserId | int | - | - | 
Return values
int
                 countPendingNotifications()
            ¶
countPendingNotifications()
            ¶
    
        
        Handler.php
                :
        42
                 
    
        Count users unread Notifications.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $ownerId | int | - | - | 
Return values
int
                 createNotification()
            ¶
createNotification()
            ¶
    
        
        Handler.php
                :
        22
                 
    
        Store Notification ValueObject in persistent storage.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $createStruct | CreateStruct | - | - | 
Return values
                 delete()
            ¶
delete()
            ¶
    
        
        Handler.php
                :
        72
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notification | Notification | - | - | 
                 getNotificationById()
            ¶
getNotificationById()
            ¶
    
        
        Handler.php
                :
        51
                 
    
        Get Notification by its id.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notificationId | int | - | - | 
Return values
                 loadUserNotifications()
            ¶
loadUserNotifications()
            ¶
    
        
        Handler.php
                :
        60
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $userId | int | - | - | 
| $offset | int | - | - | 
| $limit | int | - | - | 
Return values
array<string|int, Notification>
                 updateNotification()
            ¶
updateNotification()
            ¶
    
        
        Handler.php
                :
        33
                 
    
        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 | - | - |