Closed jiripudil closed 6 years ago
Currently, it is possible to retrieve scale using Money::getScale()
, this forces us to serialise money and context together. Adding getScale()
makes contexts independently serializable, which makes sense to me.
Thanks, released as 0.2.1
.
The motivation behind this is to be able to serialize the Money object and its context and later recreate it to the original version without losing information. We're using our own serialization code and we have a lot of Monies here and there being serialized and unserialized, so we'd like to avoid using reflection.
This is just an initial kick off, I'm looking forward to hearing your thoughts on this.