for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Eclipxe\SoftDaemon\Sequencers;
use Eclipxe\SoftDaemon\Sequencer;
/**
* Fixed sequencer calculate = fixed value
*/
class Fixed implements Sequencer
{
/** @var int */
private $seconds;
public function __construct(int $seconds = 1)
$this->seconds = max(0, $seconds);
}
public function getSeconds(): int
return $this->seconds;
public function calculate(int $count): int
return $this->getSeconds();