1
0
mirror of https://github.com/danog/loop.git synced 2024-12-13 01:37:23 +01:00
loop/test/Interfaces/SignalInterface.php

35 lines
714 B
PHP
Raw Normal View History

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;
}