<?php
namespace SabaiApps\Framework\Application;

/**
 * Interface for event listener classes.
 * Classes implementing this interface can handle events dispatched by the application.
 */
interface IEventListener {

	/**
	 * Handles an event of the specified type with the given arguments.
	 *
	 * @param string $eventType The type or name of the event.
	 * @param array  $eventArgs  The arguments or data associated with the event.
	 * @return void
	 */
	public function handleEvent( $eventType, array $eventArgs );
}
