Page MenuHomeDevCentral

Create PHP event type classes to map JSON payload
Needs ReviewPublic

Authored by aceppaluni on Fri, Oct 25, 17:14.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 07:33
Unknown Object (File)
Tue, Nov 19, 07:33
Unknown Object (File)
Tue, Nov 19, 07:33
Unknown Object (File)
Tue, Nov 19, 07:32
Unknown Object (File)
Sun, Nov 17, 16:33
Unknown Object (File)
Sun, Nov 17, 16:27
Unknown Object (File)
Sun, Nov 17, 14:15
Unknown Object (File)
Sat, Nov 16, 02:02
Subscribers
None

Details

Reviewers
dereckson
Summary

Allows for decoding Json payload to existing classes

Test Plan

Tested using JsonMapper tool

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Passed
Unit
No Test Coverage
Branch
gitHubEvClasses
Build Status
Buildable 5655
Build 5937: arc lint + arc unit

Event Timeline

aceppaluni created this revision.

Updated php class files to resolve php lint issue

dereckson retitled this revision from created php event type classes to map Json payload to Create PHP event type classes to map JSON payload.Fri, Oct 25, 22:19
dereckson edited the summary of this revision. (Show Details)
github/src/Events/AlpBH.php
8 ↗(On Diff #9149)

What means AlpBH?

github/src/Events/PullRequest.php
7

When you're in the same namespace, you can directly use a class without any need to import it before.

Now, that makes me thing: perhaps it would be convenient to get a separation between base types (User, Repo) and events (Push, PullRequest)?

github/src/Events/PushEvent.php
24

What means AlpCommitsH?

Updates Alp file names and correct php files for class mapping