We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be awesome to integrate phpexpertsinc/SimpleDTO with this project.
Minimally, we need the ability to specify what SimpleDTO class to return for any particular HTTP call.
Ideally, we would return every response as a blank + permissive SimpleDTO.
The text was updated successfully, but these errors were encountered:
A year+ later, I still can't figure out how to actually architect this.
What I've been doing is this:
$response = $api->post('/uri', ['post' => 'data']); return new Read\AccountDTO((array) $response);
SimpleDTO's validation takes care of whether or not the API call succeeded or not.
I don't even know if this is so necessary anymore.
Sorry, something went wrong.
No branches or pull requests
It would be awesome to integrate phpexpertsinc/SimpleDTO with this project.
Minimally, we need the ability to specify what SimpleDTO class to return for any particular HTTP call.
Ideally, we would return every response as a blank + permissive SimpleDTO.
The text was updated successfully, but these errors were encountered: