Wrapper for PHP enum type, uses SPL Types if available