2020-07-21 21:45:22 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function getPayload();
|
|
|
|
/**
|
2020-07-21 22:12:34 +02:00
|
|
|
* Get signaled exception.
|
2020-07-21 21:45:22 +02:00
|
|
|
*
|
|
|
|
* @return ?\Throwable
|
|
|
|
*/
|
|
|
|
public function getException(): ?\Throwable;
|
|
|
|
}
|