Dhii/wp-events

View on GitHub
src/WordPress/Exception/StoppedPropagationExceptionInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Dhii\EventManager\WordPress\Exception;

use Dhii\Exception\ThrowableInterface;
use Psr\EventManager\EventInterface;

/**
 * An exception thrown to indicate that propagation has been stopped.
 *
 * @since [*next-version*]
 */
interface StoppedPropagationExceptionInterface extends ThrowableInterface
{
    /**
     * Retrieves the event for which propagation was stopped.
     *
     * @since [*next-version*]
     *
     * @return EventInterface|null The event instance, if any.
     */
    public function getEvent();
}