Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a body property to the endpoint classes with an accessor #69

Merged
merged 14 commits into from
Jan 2, 2019

Conversation

levidurfee
Copy link
Contributor

I found myself needing to access the body for a few responses. Since some of the methods only return a boolean value, it was difficult to debug what was happening.

I created the BodyAccessorTrait. It adds a private $body property. It also adds a getBody() method. I added this trait to each class and made each method set the property from the response. There are also new assertions on the existing tests that check the return of the getBody() method.

Please let me know if I need to change anything to get this pull request merged. Thanks!

@IcyApril IcyApril merged commit 4694904 into cloudflare:master Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants