NotificationServiceDecorator
        NotificationServiceDecorator.php
                :
        17
                 
    
                                        Abstract
        
        
                    
                Implements
                                    NotificationService                            
        
                Properties¶
                 $innerService
            ¶
        $innerService
            ¶
    
        
        NotificationServiceDecorator.php
                :
        19
                 
    
        |  |  | 
Methods¶
                 __construct()
            ¶
__construct()
            ¶
    
        
        NotificationServiceDecorator.php
                :
        21
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $innerService | NotificationService | - | - | 
                 createNotification()
            ¶
createNotification()
            ¶
    
        
        NotificationServiceDecorator.php
                :
        68
                 
    
        Creates a new notification.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $createStruct | CreateStruct | - | - | 
Return values
                 deleteNotification()
            ¶
deleteNotification()
            ¶
    
        
        NotificationServiceDecorator.php
                :
        73
                 
    
        Deletes a notification.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notification | Notification | - | - | 
                 findNotifications()
            ¶
findNotifications()
            ¶
    
        
        NotificationServiceDecorator.php
                :
        33
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $query | NotificationQuery|null | null | - | 
Return values
                 getNotification()
            ¶
getNotification()
            ¶
    
        
        NotificationServiceDecorator.php
                :
        38
                 
    
        Load single notification (by ID).
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notificationId | int | - | Notification ID | 
Return values
                 getNotificationCount()
            ¶
getNotificationCount()
            ¶
    
        
        NotificationServiceDecorator.php
                :
        63
                 
    
        Get count of total users notifications.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $query | NotificationQuery|null | null | - | 
Return values
int
                 getPendingNotificationCount()
            ¶
getPendingNotificationCount()
            ¶
    
        
        NotificationServiceDecorator.php
                :
        58
                 
    
        Get count of unread users notifications.
|  |  | 
Return values
int
                 loadNotifications()
            ¶
loadNotifications()
            ¶
    
        
        NotificationServiceDecorator.php
                :
        26
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $offset | int | - | - | 
| $limit | int | - | - | 
Return values
                 markNotificationAsRead()
            ¶
markNotificationAsRead()
            ¶
    
        
        NotificationServiceDecorator.php
                :
        48
                 
    
        Mark notification as read so it no longer bother the user.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notification | Notification | - | - | 
                 markNotificationAsUnread()
            ¶
markNotificationAsUnread()
            ¶
    
        
        NotificationServiceDecorator.php
                :
        53
                 
    
        Marks the given notification as unread so it is shown again as new to the user.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notification | Notification | - | - | 
                 markUserNotificationsAsRead()
            ¶
markUserNotificationsAsRead()
            ¶
    
        
        NotificationServiceDecorator.php
                :
        43
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notificationIds | array<string|int, mixed> | [] | - |