stratadox / hydration-mapping-contracts
v0.4
2020-11-14 11:31 UTC
Requires
- php: >=7.1
README
Mappings for hydration purposes.
Maps array or array-like data structures to object properties, in order to assemble the objects that model a business domain.
Why are there only interfaces in this package
This package exists to decouple the hydrator from it's default mapping implementation.
In this setup, projects that only need the hydrator with no mapping won't need to import the mapping code. Conversely, projects can use the hydration mappings without having to deal with the hydrator itself.