Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class LaraflashRenderer implements LaraflashRendererContract |
||
10 | { |
||
11 | protected $flashMessageRenderer; |
||
12 | |||
13 | protected $configRepository; |
||
14 | |||
15 | protected $separator; |
||
16 | |||
17 | 3 | public function __construct(FlashMessageRenderer $flashMessageRenderer, ConfigRepository $configRepository) |
|
18 | { |
||
19 | 3 | $this->flashMessageRenderer = $flashMessageRenderer; |
|
20 | |||
21 | 3 | $this->configRepository = $configRepository; |
|
22 | } |
||
23 | |||
24 | 3 | public function setSeparator(string $separator) |
|
27 | } |
||
28 | |||
29 | 3 | public function getSeparator() |
|
30 | { |
||
31 | 3 | return $this->separator ?? $this->configRepository->get('laraflash.separator'); |
|
32 | } |
||
33 | |||
34 | 1 | public function render(Laraflash $laraflash): string |
|
41 | } |
||
42 | } |
||
43 |