Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class Warning |
||
15 | { |
||
16 | /** |
||
17 | * Event name |
||
18 | */ |
||
19 | const NAME = 'phpbu.warning'; |
||
20 | |||
21 | /** |
||
22 | * Warning message |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $message; |
||
27 | |||
28 | /** |
||
29 | * Constructor. |
||
30 | * |
||
31 | * @param string $message |
||
32 | */ |
||
33 | public function __construct(string $message) |
||
34 | { |
||
35 | $this->message = $message; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Message getter. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getMessage() : string |
||
46 | } |
||
47 | } |
||
48 |