Typehinting for magic methods

Added typehinting for magic methods in test enum classes.
Add docblock

Add a return type via docblock