File tree Expand file tree Collapse file tree 1 file changed +7
-19
lines changed Expand file tree Collapse file tree 1 file changed +7
-19
lines changed Original file line number Diff line number Diff line change 18
18
final class PreWriteEvent extends Event
19
19
{
20
20
const NAME = Events::PRE_WRITE ;
21
- private $ method ;
22
- private $ controllerResult ;
21
+ private $ data ;
23
22
24
- public function __construct (string $ method , $ controllerResult )
23
+ public function __construct ($ data )
25
24
{
26
- $ this ->method = $ method ;
27
- $ this ->controllerResult = $ controllerResult ;
25
+ $ this ->data = $ data ;
28
26
}
29
27
30
- public function getMethod (): string
28
+ public function getData ()
31
29
{
32
- return $ this ->method ;
30
+ return $ this ->data ;
33
31
}
34
32
35
- public function setMethod ( string $ method ): void
33
+ public function setData ( $ data ): void
36
34
{
37
- $ this ->method = $ method ;
38
- }
39
-
40
- public function getControllerResult ()
41
- {
42
- return $ this ->controllerResult ;
43
- }
44
-
45
- public function setControllerResult ($ controllerResult ): void
46
- {
47
- $ this ->controllerResult = $ controllerResult ;
35
+ $ this ->data = $ data ;
48
36
}
49
37
}
You can’t perform that action at this time.
0 commit comments