<commit_before><?php

/*
 * This file is part of the Panda Events Package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Panda\Events;

use Panda\Events\Channels\ChannelInterface;

/**
 * Interface SubscriberInterface
 * @package Panda\Events
 */
interface SubscriberInterface
{
    /**
     * @return string
     */
    public function getIdentifier();

    /**
     * @param ChannelInterface $channel
     *
     * @return string
     */
    public function getIdentifierByChannel(ChannelInterface $channel);

    /**
     * @param EventInterface   $event
     * @param ChannelInterface $channel
     */
    public function subscribe(EventInterface $event, ChannelInterface $channel);
}<commit_msg>[Events] Add EventId in SubscriberInterface<commit_after><?php

/*
 * This file is part of the Panda Events Package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Panda\Events;

use Panda\Events\Channels\ChannelInterface;

/**
 * Interface SubscriberInterface
 * @package Panda\Events
 */
interface SubscriberInterface
{
    /**
     * @return string
     */
    public function getIdentifier();

    /**
     * @param ChannelInterface $channel
     *
     * @return string
     */
    public function getIdentifierByChannel(ChannelInterface $channel);

    /**
     * @param EventInterface   $event
     * @param ChannelInterface $channel
     */
    public function subscribe(EventInterface $event, ChannelInterface $channel);

    /**
     * @return mixed
     */
    public function getEventId();
}
{'fraction_non_alphanumeric': 0.10376282782212087, 'fraction_numerical': 0.0, 'mean_word_length': 3.100467289719626, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7046077', 'n_tokens_mistral': 471, 'n_tokens_neox': 461, 'n_words': 145}