mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 14:57:26 +08:00
24 lines
546 B
PHP
24 lines
546 B
PHP
<?php
|
|
|
|
namespace GuzzleHttp\Event;
|
|
|
|
/**
|
|
* Base event interface used when dispatching events to listeners using an
|
|
* event emitter.
|
|
*/
|
|
interface EventInterface
|
|
{
|
|
/**
|
|
* Returns whether or not stopPropagation was called on the event.
|
|
*
|
|
* @return bool
|
|
* @see Event::stopPropagation
|
|
*/
|
|
public function isPropagationStopped();
|
|
|
|
/**
|
|
* Stops the propagation of the event, preventing subsequent listeners
|
|
* registered to the same event from being invoked.
|
|
*/
|
|
public function stopPropagation();
|
|
}
|