1
0
mirror of https://github.com/danog/loop.git synced 2025-01-08 13:38:15 +01:00
loop/test/Interfaces/SignalInterface.php

32 lines
684 B
PHP
Raw Normal View History

2022-12-24 14:36:39 +01:00
<?php declare(strict_types=1);
2020-07-21 21:45:22 +02:00
/**
* Signal loop test interface.
*
* @author Daniil Gentili <daniil@daniil.it>
* @copyright 2016-2020 Daniil Gentili <daniil@daniil.it>
* @license https://opensource.org/licenses/MIT MIT
*/
namespace danog\Loop\Test\Interfaces;
use danog\Loop\Interfaces\SignalLoopInterface;
/**
* Signal loop test interface.
*
* @author Daniil Gentili <daniil@daniil.it>
*/
2020-07-23 13:26:16 +02:00
interface SignalInterface extends BasicInterface, IntervalInterface, SignalLoopInterface
2020-07-21 21:45:22 +02:00
{
/**
2020-07-21 22:12:34 +02:00
* Get signaled payload.
2020-07-21 21:45:22 +02:00
*
*/
public function getPayload();
/**
2020-07-21 22:12:34 +02:00
* Get signaled exception.
2020-07-21 21:45:22 +02:00
*/
public function getException(): ?\Throwable;
}