-
Notifications
You must be signed in to change notification settings - Fork 3
Include AuthenticationResult in Transaction class #51
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
Conversation
BushraAsif
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes reviewed
| class AuthenticationResult extends AbstractResponse | ||
| { | ||
| /** | ||
| * @var string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not making enum representations of it, so you do not need to parse strings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@emicha As we also support PHP 5.6 and do not validate responses in the SDK, do we still need an enum and to validate the values at the SDK level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You do not need to validate the responses if you want, but provide a hint of what the possible values are, otherwise the person will need to read up the documentation, which defeats the purpose of an SDK in the first place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@emicha I have updated the PHPDoc to add the possible values.
No description provided.