* @copyright 2016-2020 Daniil Gentili * @license https://opensource.org/licenses/MIT MIT */ namespace danog\Loop\Test\Interfaces; use danog\Loop\Interfaces\SignalLoopInterface; /** * Signal loop test interface. * * @author Daniil Gentili */ interface SignalInterface extends BasicInterface, IntervalInterface, SignalLoopInterface { /** * Get signaled payload. * * @return mixed */ public function getPayload(); /** * Get signaled exception. * * @return ?\Throwable */ public function getException(): ?\Throwable; }