Represents the transport class of events across the system. It receives a name, subject and an optional payload. The name can be any string that uniquely identifies the event across the application, while the subject represents the object that the event applies to.
$data public array$name public string$result public mixed$subject public objectgetData( string|null $key null )
Accesses the event data/payload.
$key optional null The data payload if $key is null, or the data value for the given $key. If the $key does not exist a null value is returned.
getName( )
Returns the name of this event. This is usually used as the event identifier.
isStopped( )
Checks if the event is stopped.
setData( array|string $key , mixed $value null )
Assigns a value to the data/payload of this event.
$key $value optional null setResult( mixed $value null )
Listeners can attach a result value to the event.
$value optional null public array
public string
public mixed
public object
© 2005–2018 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.6/class-Cake.Event.EventInterface.html