| 1 |
<?php |
| 2 |
/** |
| 3 |
* Stoppable Event Interface |
| 4 |
* |
| 5 |
* @package Forge12\DoubleOptIn\EventSystem |
| 6 |
* @since 4.0.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace Forge12\DoubleOptIn\EventSystem; |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; |
| 13 |
} |
| 14 |
|
| 15 |
/** |
| 16 |
* Interface StoppableEventInterface |
| 17 |
* |
| 18 |
* An Event whose processing may be interrupted when the event has been handled. |
| 19 |
*/ |
| 20 |
interface StoppableEventInterface { |
| 21 |
|
| 22 |
/** |
| 23 |
* Is propagation stopped? |
| 24 |
* |
| 25 |
* @return bool True if the Event is complete and no further listeners should be called. |
| 26 |
*/ |
| 27 |
public function isPropagationStopped(): bool; |
| 28 |
} |
| 29 |
|