Page MenuHomeDevCentral

Define payload property in Event class
ClosedPublic

Authored by dereckson on Dec 30 2016, 04:08.
Tags
None
Referenced Files
F4012236: D781.id1975.diff
Fri, Jan 17, 16:07
Unknown Object (File)
Tue, Jan 14, 10:31
Unknown Object (File)
Wed, Jan 8, 08:48
Unknown Object (File)
Thu, Jan 2, 07:50
Unknown Object (File)
Fri, Dec 27, 05:31
Unknown Object (File)
Thu, Dec 19, 22:15
Unknown Object (File)
Dec 19 2024, 00:21
Unknown Object (File)
Dec 18 2024, 20:58
Subscribers

Details

Summary

This allows to use code like:

function handleEvent (Event $event): void {
    $this->doStuff($event->payload); // This is now always valid.
}
Test Plan

Run tests, then phan | grep payload.

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson edited the summary of this revision. (Show Details)
dereckson edited the summary of this revision. (Show Details)
dereckson edited edge metadata.
This revision is now accepted and ready to land.Dec 30 2016, 04:51
This revision was automatically updated to reflect the committed changes.