1 | <?php |
||
9 | class OutboxCleanerFeatureStartupTask implements FeatureStartupTaskInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var OutboxPersister |
||
13 | */ |
||
14 | private $outboxPersister; |
||
15 | |||
16 | /** |
||
17 | * @var \DateTime |
||
18 | */ |
||
19 | private $now; |
||
20 | |||
21 | /** |
||
22 | * @var int|null |
||
23 | */ |
||
24 | private $daysToKeepDeduplicationData; |
||
25 | |||
26 | /** |
||
27 | * @param OutboxPersister $outboxPersister |
||
28 | * @param \DateTime $now |
||
29 | * @param int|null $daysToKeepDeduplicationData |
||
30 | */ |
||
31 | 4 | public function __construct(OutboxPersister $outboxPersister, \DateTime $now, $daysToKeepDeduplicationData = null) |
|
37 | |||
38 | /** |
||
39 | * @param BusContextInterface $busContext |
||
40 | * |
||
41 | * @throws UnexpectedValueException |
||
42 | */ |
||
43 | 3 | public function start(BusContextInterface $busContext) |
|
57 | } |
||
58 |