1 | <?php |
||
20 | class AutomaticMatchSettingsSave implements ListenerInterfaceMpLegacyMap, StatusAwarePluginInterface |
||
21 | { |
||
22 | /** @var FileSystem */ |
||
23 | protected $fileSystem; |
||
24 | |||
25 | /** @var Factory */ |
||
26 | protected $connectionFactory; |
||
27 | |||
28 | /** @var LoggerInterface */ |
||
29 | protected $logger; |
||
30 | |||
31 | /** @var TextConfig */ |
||
32 | protected $fileName; |
||
33 | |||
34 | /** |
||
35 | * AutomaticServerSettingsSave constructor. |
||
36 | * |
||
37 | * @param FileSystem $fileSystem |
||
38 | * @param Factory $connectionFactory |
||
39 | * @param LoggerInterface $logger |
||
40 | * @param TextConfig $fileName |
||
41 | */ |
||
42 | public function __construct(FileSystem $fileSystem, Factory $connectionFactory, LoggerInterface $logger, TextConfig $fileName) |
||
49 | |||
50 | |||
51 | public function saveFile() |
||
65 | |||
66 | /** |
||
67 | * @param Map $map |
||
68 | * |
||
69 | * @return void |
||
70 | */ |
||
71 | public function onBeginMap(Map $map) |
||
75 | |||
76 | /** |
||
77 | * @param Map $map |
||
78 | * |
||
79 | * @return void |
||
80 | */ |
||
81 | public function onEndMap(Map $map) |
||
85 | |||
86 | /** |
||
87 | * Set the status of the plugin |
||
88 | * |
||
89 | * @param boolean $status |
||
90 | * |
||
91 | * @return null |
||
92 | */ |
||
93 | public function setStatus($status) |
||
97 | } |