Page MenuHomeDevCentral

Define payload property in Event class
ClosedPublic

Authored by dereckson on Dec 30 2016, 04:08.
Tags
None
Referenced Files
F11723479: D781.diff
Tue, Sep 16, 10:25
Unknown Object (File)
Sun, Sep 14, 18:43
Unknown Object (File)
Sat, Sep 13, 19:22
Unknown Object (File)
Fri, Sep 12, 22:16
Unknown Object (File)
Fri, Sep 12, 03:30
Unknown Object (File)
Wed, Sep 10, 13:43
Unknown Object (File)
Sat, Aug 30, 13:20
Unknown Object (File)
Thu, Aug 28, 07:45
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.