tuyakhov/yii2-notifications

View on GitHub
src/NotificationInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * @copyright Anton Tuyakhov <atuyakhov@gmail.com>
 */

namespace tuyakhov\notifications;


use tuyakhov\notifications\messages\AbstractMessage;

interface NotificationInterface
{
    /**
     * Export notification as message for given channel.
     * @param string $channel
     * @return AbstractMessage
     */
    public function exportFor($channel);

    /**
     * Determines on which channels the notification will be delivered
     * @return array
     */
    public function broadcastOn();
}