1 | <?php |
||
9 | class BootstrapThreePresenter implements Presenter |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | private $classNameSuffixMap = [ |
||
15 | 'success' => 'success', |
||
16 | 'error' => 'danger', |
||
17 | 'warning' => 'warning', |
||
18 | 'info' => 'info', |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * @param Notifications $notifications |
||
23 | * @return string |
||
24 | */ |
||
25 | 3 | public function render(Notifications $notifications) |
|
34 | |||
35 | /** |
||
36 | * @param Notification $notification |
||
37 | * @return string |
||
38 | */ |
||
39 | 3 | private function renderNotification(Notification $notification) |
|
49 | |||
50 | /** |
||
51 | * @param string $type |
||
52 | * @return string |
||
53 | */ |
||
54 | 3 | private function getClassNameSuffix($type) |
|
62 | } |
||
63 |