SyntaxFix
Write A Post
Hire A Developer
Questions
You should replace your getEnumNameForValue by a call to the name() method.
getEnumNameForValue
name()