Clean PHP struct implementation with optional strong typed fields.