mirror of
https://github.com/danog/loop.git
synced 2024-12-12 01:09:40 +01:00
35 lines
699 B
PHP
35 lines
699 B
PHP
<?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>
|
|
*/
|
|
interface SignalInterface extends ResumableInterface, SignalLoopInterface
|
|
{
|
|
/**
|
|
* Get signaled payload.
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function getPayload();
|
|
/**
|
|
* Get signaled exception.
|
|
*
|
|
* @return ?\Throwable
|
|
*/
|
|
public function getException(): ?\Throwable;
|
|
}
|