Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
25 | 13 | public function __construct(JobInterface $job, DateTimeInterface $after, DateTimeInterface $before, $inc = true) |
|
26 | { |
||
27 | 13 | $dates = $job->getRRule()->getRecurrences($after, $before, $inc); |
|
28 | 13 | $actions = []; |
|
29 | /** @var Recurrence $recurrence */ |
||
30 | 13 | foreach ($dates as $recurrence) { |
|
31 | 12 | $actions[] = new CallableAction($job, $recurrence); |
|
32 | 13 | } |
|
33 | 13 | parent::__construct($actions); |
|
34 | 13 | } |
|
35 | |||
36 | } |