Closed Jeroen-G closed 5 hours ago
I wrote an object that I wanted to be mapped to array differently then just property -> value. PHP supports this with the JsonSerialize interface. So I wrote a simple check (with test) for that!
For the example, I think the test speaks for itself.
Makes sense 👍
I wrote an object that I wanted to be mapped to array differently then just property -> value. PHP supports this with the JsonSerialize interface. So I wrote a simple check (with test) for that!
For the example, I think the test speaks for itself.