diskerror/typed (packagist): PHP classes to strictly define member structure, to control their data types, and to add convenience methods.
Keywords: type|structure|struct|cast|immutable