ApprovedConversionRequestNotification
        
        extends ApproveNotification
    
    
            
            in package
            
        
    
    
    
Class ApproveNotification.
Table of Contents
Properties
- $data : array<string|int, mixed>
 - $manager : NotificationManagerInterface
 - $model : mixed
 - $notifiable : IsNotifiable|null
 - $type : string
 - $user : UserEntity|null
 - $userId : int
 - $userType : string
 
Methods
- __construct() : mixed
 - Notification constructor.
 - callbackMessage() : string|null
 - Extended classes must implement this method.
 - getLocale() : string|null
 - getType() : string
 - Get notification type.
 - localize() : string
 - setContext() : self
 - setData() : void
 - Assign value of data column in table notifications.
 - setModel() : void
 - Set model for notification.
 - setNotifiable() : self
 - setUser() : void
 - toArray() : array<string|int, mixed>
 - Must return an array to store to database.
 - toLink() : string|null
 - toMail() : MailMessage|null
 - toMobileMessage() : array<string, mixed>
 - toRouter() : string|null
 - toTextMessage() : Message|null
 - toUrl() : string|null
 - via() : array<string|int, string>
 - getMessage() : string
 
Properties
$data
    protected
        array<string|int, mixed>
    $data
     = []
    
    
    
$manager
    protected
        NotificationManagerInterface
    $manager
    
    
    
    
$model
    protected
        mixed
    $model
    
    
    
    
$notifiable
    protected
        IsNotifiable|null
    $notifiable
     = null
    
    
    
$type
    protected
        string
    $type
     = 'activitypoint_approved_conversion_request_notification'
    
    
    
$user
    protected
        UserEntity|null
    $user
     = null
    
    
    
$userId
    protected
        int
    $userId
     = 0
    
    
    
$userType
    protected
        string
    $userType
     = ''
    
    
    
Methods
__construct()
Notification constructor.
    public
                    __construct([mixed $model = null ]) : mixed
    Parameters
- $model : mixed = null
 
callbackMessage()
Extended classes must implement this method.
    public
                    callbackMessage() : string|null
    Return values
string|nullgetLocale()
    public
                    getLocale() : string|null
    Return values
string|nullgetType()
Get notification type.
    public
                    getType() : string
    Return values
stringlocalize()
    public
                    localize([string|null $key = null ][, array<string, mixed> $replace = [] ]) : string
    Parameters
- $key : string|null = null
 - $replace : array<string, mixed> = []
 
Return values
stringsetContext()
    public
                    setContext(User|null $user) : self
    Parameters
- $user : User|null
 
Return values
selfsetData()
Assign value of data column in table notifications.
    public
                    setData(array<int, mixed> $data) : void
    Parameters
- $data : array<int, mixed>
 
setModel()
Set model for notification.
    public
                    setModel(Entity $item) : void
    Parameters
- $item : Entity
 
setNotifiable()
    public
                    setNotifiable(IsNotifiable|null $notifiable) : self
    Parameters
- $notifiable : IsNotifiable|null
 
Return values
selfsetUser()
    public
                    setUser(UserEntity|null $user) : void
    Parameters
- $user : UserEntity|null
 
toArray()
Must return an array to store to database.
    public
    abstract                toArray(IsNotifiable $notifiable) : array<string|int, mixed>
    Parameters
- $notifiable : IsNotifiable
 
Return values
array<string|int, mixed>toLink()
    public
                    toLink() : string|null
    Return values
string|nulltoMail()
    public
                    toMail() : MailMessage|null
    Return values
MailMessage|nulltoMobileMessage()
    public
                    toMobileMessage(IsNotifiable $notifiable) : array<string, mixed>
    Parameters
- $notifiable : IsNotifiable
 
Return values
array<string, mixed>toRouter()
    public
                    toRouter() : string|null
    Return values
string|nulltoTextMessage()
    public
                    toTextMessage(IsNotifiable $notifiable) : Message|null
    Parameters
- $notifiable : IsNotifiable
 
Return values
Message|nulltoUrl()
    public
                    toUrl() : string|null
    Return values
string|nullvia()
    public
                    via(IsNotifiable $notifiable) : array<string|int, string>
    Parameters
- $notifiable : IsNotifiable
 
Return values
array<string|int, string>getMessage()
    private
                    getMessage() : string