1
+ <?php
2
+
3
+ namespace IXP \Events \User ;
4
+
5
+ /*
6
+ * Copyright (C) 2009 - 2020 Internet Neutral Exchange Association Company Limited By Guarantee.
7
+ * All Rights Reserved.
8
+ *
9
+ * This file is part of IXP Manager.
10
+ *
11
+ * IXP Manager is free software: you can redistribute it and/or modify it
12
+ * under the terms of the GNU General Public License as published by the Free
13
+ * Software Foundation, version v2.0 of the License.
14
+ *
15
+ * IXP Manager is distributed in the hope that it will be useful, but WITHOUT
16
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18
+ * more details.
19
+ *
20
+ * You should have received a copy of the GNU General Public License v2.0
21
+ * along with IXP Manager. If not, see:
22
+ *
23
+ * http://www.gnu.org/licenses/gpl-2.0.html
24
+ */
25
+
26
+ use Illuminate \Contracts \Queue \ShouldQueue ;
27
+ use Illuminate \Queue \InteractsWithQueue ;
28
+ use Illuminate \Queue \SerializesModels ;
29
+ use Illuminate \Foundation \Events \Dispatchable ;
30
+
31
+ /**
32
+ * User Warning Event
33
+ * @author Barry O'Donovan <[email protected] >
34
+ * @author Yann Robin <[email protected] >
35
+ * @author Laszlo Kiss <[email protected] >
36
+ * @category Events\User
37
+ * @copyright Copyright (C) 2009 - 2020 Internet Neutral Exchange Association Company Limited By Guarantee
38
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU GPL V2.0
39
+ */
40
+ class UserWarning implements ShouldQueue
41
+ {
42
+ use Dispatchable, SerializesModels, InteractsWithQueue;
43
+
44
+ /**
45
+ * @var string
46
+ * @var string
47
+ */
48
+ public string $ warningTitle ;
49
+ public string $ errorMessage ;
50
+
51
+ /**
52
+ * Create a new event instance.
53
+ *
54
+ * @param string $warningTitle
55
+ * @param string $errorMessage
56
+ */
57
+ public function __construct ( string $ warningTitle , string $ errorMessage )
58
+ {
59
+ $ this ->warningTitle = $ warningTitle ;
60
+ $ this ->errorMessage = $ errorMessage ;
61
+ }
62
+
63
+ /**
64
+ * Get asn string
65
+ *
66
+ * @return string
67
+ */
68
+ public function getTitle (): string
69
+ {
70
+ return $ this ->warningTitle ;
71
+ }
72
+
73
+ /**
74
+ * Get error message string
75
+ *
76
+ * @return string
77
+ */
78
+ public function getErrorMessage (): string
79
+ {
80
+ return $ this ->errorMessage ;
81
+ }
82
+ }
0 commit comments