Closed jenky closed 1 year ago
Close due to the fact that your DTO now have to implements an interface to be treated as iterable
. It also remove the ability to access to value by using array syntax from IDE suggestions, for i.e: $data['foo']
.
DTO can have static method such as fromResponse(Response $response): self
to create new instance of it self.
Detailed description
Improve decoder
decode
method to returniterable
instead ofarray
Context
This allows to map the response body to DTOs