10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
__construct()
2 parents b6d6adf + 36cb3bf commit 0d28cf1Copy full SHA for 0d28cf1
src/Symfony/Component/Scheduler/Schedule.php
@@ -21,18 +21,18 @@
21
22
final class Schedule implements ScheduleProviderInterface
23
{
24
- public function __construct(
25
- private readonly ?EventDispatcherInterface $dispatcher = null,
26
- ) {
27
- }
28
-
29
/** @var array<string,RecurringMessage> */
30
private array $messages = [];
31
private ?LockInterface $lock = null;
32
private ?CacheInterface $state = null;
33
private bool $shouldRestart = false;
34
private bool $onlyLastMissed = false;
35
+ public function __construct(
+ private readonly ?EventDispatcherInterface $dispatcher = null,
+ ) {
+ }
+
36
public function with(RecurringMessage $message, RecurringMessage ...$messages): static
37
38
return static::doAdd(new self($this->dispatcher), $message, ...$messages);
0 commit comments