4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Testwork\Output\Node\EventListener;
13 use Behat\Testwork\Output\Formatter;
14 use Symfony\Component\EventDispatcher\Event;
17 * Used to define formatter event listeners.
19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
21 interface EventListener
24 * Notifies listener about an event.
26 * @param Formatter $formatter
28 * @param string $eventName
30 public function listenEvent(Formatter $formatter, Event $event, $eventName);