neat-php / object

Neat Object components
MIT License
4 stars 1 forks source link

Support property types with Serializable classes #14

Open annavanbiemen opened 5 years ago

annavanbiemen commented 5 years ago

When type hinting a property with a class name, the Property should be able to recognize a Serializable class and use it to serialize and deserialize the property value.

https://www.php.net/manual/en/class.serializable.php

baukevdw commented 4 years ago

See: 75635c2 feature/serializable facilitates this

baukevdw commented 4 years ago

This feature will not be implemented until support for php <7.4 is dropped. Implementing this feature in a proper manner requires typed properties.

baukevdw commented 4 years ago

Relates to #28