3
3
namespace IXP \Events \User ;
4
4
5
5
/*
6
- * Copyright (C) 2009 - 2020 Internet Neutral Exchange Association Company Limited By Guarantee.
6
+ * Copyright (C) 2009 - 2025 Internet Neutral Exchange Association Company Limited By Guarantee.
7
7
* All Rights Reserved.
8
8
*
9
9
* This file is part of IXP Manager.
31
31
/**
32
32
* User Warning Event
33
33
* @author Barry O'Donovan <[email protected] >
34
- * @author Yann Robin <[email protected] >
35
34
* @author Laszlo Kiss <[email protected] >
36
35
* @category Events\User
37
- * @copyright Copyright (C) 2009 - 2020 Internet Neutral Exchange Association Company Limited By Guarantee
36
+ * @copyright Copyright (C) 2009 - 2025 Internet Neutral Exchange Association Company Limited By Guarantee
38
37
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU GPL V2.0
39
38
*/
40
39
class UserWarning implements ShouldQueue
41
40
{
42
41
use Dispatchable, SerializesModels, InteractsWithQueue;
43
42
44
- /**
45
- * @var string
46
- * @var string
47
- */
48
- public string $ warningTitle ;
49
- public string $ errorMessage ;
50
-
51
43
/**
52
44
* Create a new event instance.
53
45
*
54
46
* @param string $warningTitle
55
47
* @param string $errorMessage
56
48
*/
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
- }
49
+ public function __construct (
50
+ public string $ warningTitle ,
51
+ public string $ errorMessage )
52
+ {}
72
53
73
- /**
74
- * Get error message string
75
- *
76
- * @return string
77
- */
78
- public function getErrorMessage (): string
79
- {
80
- return $ this ->errorMessage ;
81
- }
82
54
}
0 commit comments