1 | <?php |
||
12 | class InMemoryHookConfig implements HookConfigInterface, HookConfigExtraToolInterface |
||
13 | { |
||
14 | /** @var bool */ |
||
15 | private $enabled; |
||
16 | /** @var array */ |
||
17 | private $extraOptions = []; |
||
18 | |||
19 | private $messages = [ |
||
20 | MessageConfigData::KEY_ERROR_MESSAGE => 'error', |
||
21 | MessageConfigData::KEY_RIGHT_MESSAGE => 'perfect', |
||
22 | ]; |
||
23 | |||
24 | /** |
||
25 | * @param bool $enabled |
||
26 | */ |
||
27 | public function setEnabled($enabled) |
||
31 | |||
32 | /** |
||
33 | * @param string $hook |
||
34 | * |
||
35 | * @return bool |
||
36 | */ |
||
37 | public function isEnabled($hook) |
||
41 | |||
42 | /** |
||
43 | * @param array $extraOptions |
||
44 | */ |
||
45 | public function setExtraOptions($extraOptions) |
||
49 | |||
50 | /** |
||
51 | * @param array $tool |
||
52 | * |
||
53 | * @return array |
||
54 | */ |
||
55 | public function extraOptions($tool) |
||
59 | |||
60 | /** |
||
61 | * @return array |
||
62 | */ |
||
63 | public function getMessages() |
||
67 | } |
||
68 |