Skip to content
docsv0.1.0

NotificationPayloadInterface

Interface for notification payloads. Defines the contract for notification data that can be sent through channels.

NotificationPayloadInterface::getType()

abstract public function getType(): string

Get the notification type.

Returns

Type identifier (e.g., 'action_result', 'alert', 'report')

NotificationPayloadInterface::getTitle()

abstract public function getTitle(): string

Get the notification title.

NotificationPayloadInterface::getData()

abstract public function getData(): array

Get the notification data.

NotificationPayloadInterface::getTemplate()

abstract public function getTemplate(): ?string

Get optional template name for custom rendering.

NotificationPayloadInterface::getMetadata()

abstract public function getMetadata(): array

Get additional metadata.