yiicod/yii2-socketio

View on GitHub
events/EventInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace yiicod\socketio\events;

/**
 * Interface EventInterface
 * Event name and broadcast nsp
 *
 * @package yiicod\socketio\events
 */
interface EventInterface
{
    /**
     * List broadcast nsp array
     *
     * @return array
     */
    public static function broadcastOn(): array;

    /**
     * Get event name
     *
     * @return string
     */
    public static function name(): string;
}