Fix Issue 12653 - Implement the getFunctionAttributes trait.