final class Schedule implements ScheduleProviderInterface
{ /** @var array<string,RecurringMessage> */
private array
$messages =
[];
private ?LockInterface
$lock = null;
private ?CacheInterface
$state = null;
private bool
$shouldRestart = false;
public static function with(RecurringMessage
$message, RecurringMessage ...
$messages):
static { return static::
doAdd(new self(),
$message, ...
$messages);
} /**
* @return $this
*/
public function add(RecurringMessage
$message, RecurringMessage ...
$messages):
static { $this->
setRestart(true
);
return static::
doAdd($this,
$message, ...
$messages);
}