Total Complexity | 6 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | class ReloadBashConfigEvent extends AbstractEvent |
||
20 | { |
||
21 | public const NAME = 'bash.reload_config'; |
||
22 | |||
23 | private $footer = array(); |
||
24 | |||
25 | private $header = array(); |
||
26 | |||
27 | /** |
||
28 | * @var LoggerInterface |
||
29 | */ |
||
30 | private $logger; |
||
31 | |||
32 | public function __construct(LoggerInterface $logger) |
||
33 | { |
||
34 | $this->logger = $logger; |
||
35 | } |
||
36 | |||
37 | public function addFooterConfig($contents): void |
||
38 | { |
||
39 | if (!is_array($contents)) { |
||
40 | $contents = array($contents); |
||
41 | } |
||
42 | $this->footer = array_merge($this->footer, $contents); |
||
43 | } |
||
44 | |||
45 | public function addHeaderConfig($contents): void |
||
54 | ); |
||
55 | } |
||
56 | |||
57 | public function getBashConfig() |
||
64 |