florianv / business

:date: DateTime calculations in business hours
http://florianv.github.io/business
MIT License
361 stars 25 forks source link

Feature request: serialize/deserialize #5

Closed olimsaidov closed 9 years ago

olimsaidov commented 9 years ago

Please, add serialization methods for Bussiness class

florianv commented 9 years ago

Hi @olimsaidov, what's your use case for adding this feature ?

olimsaidov commented 9 years ago

Want to persist created instances to database and restore them for later use. On Jun 8, 2015 01:27, "Florian Voutzinos" notifications@github.com wrote:

Hi @olimsaidov https://github.com/olimsaidov, what's your use case for adding this feature ?

— Reply to this email directly or view it on GitHub https://github.com/florianv/business/issues/5#issuecomment-109797485.

florianv commented 9 years ago

Thanks for the suggestion, I added the feature in the latest version (1.1.0), you can run composer update to get it.

I also added some documentation about it https://github.com/florianv/business#serialization.

olimsaidov commented 9 years ago

Great work. Thanks On Jun 8, 2015 18:11, "Florian Voutzinos" notifications@github.com wrote:

Closed #5 https://github.com/florianv/business/issues/5.

— Reply to this email directly or view it on GitHub https://github.com/florianv/business/issues/5#event-325220769.

florianv commented 9 years ago

Np, thanks :)