Page MenuHomeDevCentral

Define payload property in Event class
ClosedPublic

Authored by dereckson on Dec 30 2016, 04:08.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 12:50
Unknown Object (File)
Thu, Dec 12, 18:15
Unknown Object (File)
Wed, Dec 11, 14:18
Unknown Object (File)
Wed, Dec 11, 14:18
Unknown Object (File)
Wed, Dec 11, 14:02
Unknown Object (File)
Wed, Dec 11, 13:41
Unknown Object (File)
Sun, Dec 8, 04:46
Unknown Object (File)
Sat, Dec 7, 07:40
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 Passed
Unit
No Test Coverage
Branch
payload (branched from master)

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.