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 array $classNameSuffixMap |
||
23 | */ |
||
24 | 12 | public function __construct(array $classNameSuffixMap = []) |
|
28 | |||
29 | /** |
||
30 | * @param Notifications $notifications |
||
31 | * @return string |
||
32 | */ |
||
33 | 9 | public function render(Notifications $notifications) |
|
42 | |||
43 | /** |
||
44 | * @param Notification $notification |
||
45 | * @return string |
||
46 | */ |
||
47 | 9 | private function renderNotification(Notification $notification) |
|
57 | |||
58 | /** |
||
59 | * @param string $type |
||
60 | * @return string |
||
61 | */ |
||
62 | 9 | private function getClassNameSuffix($type) |
|
70 | } |
||
71 |