1 | <?php |
||
14 | class ScheduleSynchronizer |
||
15 | { |
||
16 | /** |
||
17 | * @var ManagerRegistry |
||
18 | */ |
||
19 | protected $doctrine; |
||
20 | |||
21 | /** |
||
22 | * @param ManagerRegistry $doctrine |
||
23 | */ |
||
24 | public function setDoctrine($doctrine) |
||
28 | |||
29 | /** |
||
30 | * @var ScheduleRegistry |
||
31 | */ |
||
32 | private $scheduleRegistry; |
||
33 | |||
34 | /** |
||
35 | * @var bool |
||
36 | */ |
||
37 | private $force = false; |
||
38 | |||
39 | /** |
||
40 | * @param boolean $force |
||
41 | */ |
||
42 | public function setForce(bool $force) |
||
46 | |||
47 | /** |
||
48 | * @param ScheduleRegistry $scheduleRegistry |
||
49 | */ |
||
50 | public function setScheduleRegistry(ScheduleRegistry $scheduleRegistry) |
||
54 | |||
55 | /** |
||
56 | * |
||
57 | */ |
||
58 | public function sync() |
||
87 | |||
88 | /** |
||
89 | * @param Schedule $schedule |
||
90 | * @param string $id |
||
91 | * @param Def $def |
||
92 | */ |
||
93 | private function update(Schedule $schedule, string $id, Def $def) |
||
102 | } |
||
103 |