MetaFox

NotificationManager
in package
implements NotificationManagerInterface

Class NotificationManagerRepository.

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Table of Contents

Interfaces

NotificationManagerInterface
Interface NotificationSettingInterface.

Constants

CACHE_CHANNELS  = 'ChannelManager::channels'

Properties

$handlerClasses  : array<string, string>

Methods

addHandler()  : void
getChannelsForNotifiableByType()  : array<string|int, string>
Get notification channels.
getHandler()  : string|null
getNotificationType()  : Type|null
routeNotificationFor()  : mixed
This method will map to driver's repository.
getChannelsForType()  : mixed
getNotifiableSettingByType()  : mixed

Constants

Properties

Methods

addHandler()

public addHandler(string $type, string $class) : void
Parameters
$type : string
$class : string

getChannelsForNotifiableByType()

Get notification channels.

public getChannelsForNotifiableByType(IsNotifiable $notifiable, string $type) : array<string|int, string>
Parameters
$notifiable : IsNotifiable
$type : string
Return values
array<string|int, string>

getHandler()

public getHandler(string $type) : string|null
Parameters
$type : string
Return values
string|null

getNotificationType()

public getNotificationType(string $type) : Type|null
Parameters
$type : string
Return values
Type|null

        
On this page

Search results