Page MenuHomeDevCentral

Create PHP event type classes to map JSON payload
Needs ReviewPublic

Authored by aceppaluni on Oct 25 2024, 17:14.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 04:03
Unknown Object (File)
Fri, Dec 13, 09:24
Unknown Object (File)
Fri, Dec 13, 01:58
Unknown Object (File)
Thu, Dec 12, 08:16
Unknown Object (File)
Thu, Dec 12, 08:16
Unknown Object (File)
Thu, Dec 12, 08:16
Unknown Object (File)
Thu, Dec 12, 08:16
Unknown Object (File)
Thu, Dec 12, 08:07
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
github-events
Build Status
Buildable 5775
Build 6057: 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.Oct 25 2024, 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

Rebased. Improved classes with feedback from tests.