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)
Sat, Nov 16, 02:02
Unknown Object (File)
Mon, Nov 11, 03:13
Unknown Object (File)
Sun, Nov 10, 21:44
Unknown Object (File)
Sat, Nov 9, 13:04
Unknown Object (File)
Sat, Nov 9, 13:04
Unknown Object (File)
Sat, Nov 9, 12:59
Unknown Object (File)
Sat, Nov 9, 12:50
Unknown Object (File)
Sat, Nov 9, 11:27
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 Warnings
SeverityLocationCodeMessage
Warninggithub/src/Events/AlpBH.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/AlpCommitsH.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/AutoMerge.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/Label.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/License.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/Links.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/Milestone.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/Organization.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/PullRequest.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/PullRequestOpened.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/PushEvent.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/Repo.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/User.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Unit
No Test Coverage
Branch
gitHubEvClasses
Build Status
Buildable 5649
Build 5931: 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
9

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