File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class Event
53
53
*
54
54
* @var mixed
55
55
*/
56
- protected $ _result = null ;
56
+ public $ result = null ;
57
57
58
58
/**
59
59
* Flags an event as stopped or not, default is false
@@ -99,7 +99,7 @@ public function __get($attribute)
99
99
return $ this ->_data ;
100
100
}
101
101
if ($ attribute === 'result ' ) {
102
- return $ this ->_result ;
102
+ return $ this ->result ;
103
103
}
104
104
}
105
105
@@ -117,7 +117,7 @@ public function __set($attribute, $value)
117
117
$ this ->_data = (array )$ value ;
118
118
}
119
119
if ($ attribute === 'result ' ) {
120
- $ this ->_result = $ value ;
120
+ $ this ->result = $ value ;
121
121
}
122
122
}
123
123
@@ -191,7 +191,7 @@ public function isStopped()
191
191
*/
192
192
public function result ()
193
193
{
194
- return $ this ->_result ;
194
+ return $ this ->result ;
195
195
}
196
196
197
197
/**
@@ -201,7 +201,7 @@ public function result()
201
201
*/
202
202
public function getResult ()
203
203
{
204
- return $ this ->_result ;
204
+ return $ this ->result ;
205
205
}
206
206
207
207
/**
@@ -212,7 +212,7 @@ public function getResult()
212
212
*/
213
213
public function setResult ($ value = null )
214
214
{
215
- $ this ->_result = $ value ;
215
+ $ this ->result = $ value ;
216
216
217
217
return $ this ;
218
218
}
Original file line number Diff line number Diff line change @@ -422,6 +422,7 @@ public function testDispatchReturnValue()
422
422
->with ($ event );
423
423
$ manager ->dispatch ($ event );
424
424
$ this ->assertEquals ('something special ' , $ event ->result ());
425
+ $ this ->assertEquals ('something special ' , $ event ->result );
425
426
}
426
427
427
428
/**
You can’t perform that action at this time.
0 commit comments