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
F3922693: D3560.id9179.diff
Sat, Dec 21, 04:22
Unknown Object (File)
Fri, Dec 20, 00:14
Unknown Object (File)
Thu, Dec 19, 05:41
Unknown Object (File)
Wed, Dec 18, 11:03
Unknown Object (File)
Wed, Dec 18, 09:53
Unknown Object (File)
Wed, Dec 18, 09:52
Unknown Object (File)
Wed, Dec 18, 09:52
Unknown Object (File)
Wed, Dec 18, 09:52
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.