2020-07-21 19:12:11 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Resumable loop test interface.
|
|
|
|
*
|
|
|
|
* @author Daniil Gentili <daniil@daniil.it>
|
|
|
|
* @copyright 2016-2020 Daniil Gentili <daniil@daniil.it>
|
|
|
|
* @license https://opensource.org/licenses/MIT MIT
|
|
|
|
*/
|
|
|
|
|
2020-07-21 19:53:57 +02:00
|
|
|
namespace danog\Loop\Test\Interfaces;
|
2020-07-21 19:12:11 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Resumable loop test interface.
|
|
|
|
*
|
|
|
|
* @author Daniil Gentili <daniil@daniil.it>
|
|
|
|
*/
|
2020-07-21 21:45:22 +02:00
|
|
|
interface ResumableInterface extends BasicInterface
|
2020-07-21 19:12:11 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Set sleep interval.
|
|
|
|
*
|
|
|
|
* @param ?int $interval Interval
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2020-07-22 18:18:57 +02:00
|
|
|
public function setInterval(?int $interval): void;
|
2020-07-21 19:12:11 +02:00
|
|
|
}
|