Total Complexity | 7 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class AlertReport implements AlertReporterInterface |
||
6 | { |
||
7 | private $alertManager; |
||
8 | |||
9 | public function __construct(AlertManagerInterface $alertManager) |
||
10 | { |
||
11 | $this->alertManager = $alertManager; |
||
12 | } |
||
13 | |||
14 | public function addError($message) |
||
17 | } |
||
18 | |||
19 | public function addSuccess($message) |
||
20 | { |
||
21 | $this->add(AlertInterface::SUCCESS, $message); |
||
22 | } |
||
23 | |||
24 | public function addInfo($message) |
||
25 | { |
||
26 | $this->add(AlertInterface::INFO, $message); |
||
27 | } |
||
28 | |||
29 | public function addWarning($message) |
||
30 | { |
||
31 | $this->add(AlertInterface::WARNING, $message); |
||
32 | } |
||
33 | |||
34 | public function add($type = 'info', $message) |
||
40 | } |
||
41 | } |
||
42 |