2022-12-24 14:36:39 +01:00
|
|
|
<?php declare(strict_types=1);
|
2020-07-21 18:06:19 +02:00
|
|
|
/**
|
|
|
|
* Loop class.
|
|
|
|
*
|
|
|
|
* @author Daniil Gentili <daniil@daniil.it>
|
|
|
|
* @copyright 2016-2020 Daniil Gentili <daniil@daniil.it>
|
|
|
|
* @license https://opensource.org/licenses/MIT MIT
|
|
|
|
*/
|
|
|
|
|
2020-07-21 21:45:22 +02:00
|
|
|
namespace danog\Loop;
|
2020-07-21 18:06:19 +02:00
|
|
|
|
2020-07-21 21:45:22 +02:00
|
|
|
use danog\Loop\Interfaces\LoopInterface;
|
2020-07-21 18:06:19 +02:00
|
|
|
use danog\Loop\Traits\Loop as TraitsLoop;
|
2022-12-24 18:59:54 +01:00
|
|
|
use Stringable;
|
2020-07-21 18:06:19 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Loop abstract class.
|
|
|
|
*
|
|
|
|
* @author Daniil Gentili <daniil@daniil.it>
|
|
|
|
*/
|
2022-12-24 18:59:54 +01:00
|
|
|
abstract class Loop implements LoopInterface, Stringable
|
2020-07-21 18:06:19 +02:00
|
|
|
{
|
|
|
|
use TraitsLoop;
|
2023-01-22 21:22:34 +01:00
|
|
|
|
|
|
|
private function exitedLoopInternal(): void {
|
|
|
|
$this->exitedLoopInternalLoop();
|
|
|
|
}
|
2020-07-21 18:06:19 +02:00
|
|
|
}
|