Lines 100.00% 1 / 1
Functions and Methods 100.00% 1 / 1
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
ScheduleContext 100.00% 1 / 1 100.00% 1 / 1 1 100.00% 1 / 1
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Runtime\Schedule;
6
7use Stewart\Contracts\Time\Clock;
8use Stewart\Contracts\Time\Timers;
9use Stewart\Runtime\Logging\EveryNthOccurrence;
10
11final readonly class ScheduleContext
12{
13    public EveryNthOccurrence $overlapReports;
14
15    public function __construct(
16        public Timers $timers,
17        public Clock $clock,
18        public HandlerRunner $runner,
19        public ScheduleListener $listener,
20    ) {
21        $this->overlapReports = EveryNthOccurrence::forRepeatedWarnings();
22    }
23}