protected function getMethodNameForClass(Element $element)
    {
        // if a method exists for this element, then use that one
        $className = get_class($element);

        // strip namespaces;
        $className = substr($className, strrpos($className, '\\') + 1);

        // make first char lower case
        return strtolower(substr($className, 0, 1)) . substr($className, 1);
    }
protected function getMethodNameForClass(Element $element)
    {
        // if a method exists for this element, then use that one
        $className = get_class($element);

        // strip namespaces;
        $className = substr($className, strrpos($className, '\\') + 1);

        // make first char lower case
        return strtolower(substr($className, 0, 1)) . substr($className, 1);
    }
protected function getMethodNameForClass ( Element $ element ) { // if a method exists for this element, then use that one $ className = get_class ( $ element ) ; // strip namespaces; $ className = substr ( $ className , strrpos ( $ className , '\\' ) + 1 ) ; // make first char lower case return strtolower ( substr ( $ className , 0 , 1 ) ) . substr ( $ className , 1 ) ; }
Return the name of the method as we would expect it for this class.

It creates method names like this:

```FormHandler\Fields\TextField => textField```
```FormHandler\Fields\RadioButton => radioButton```

@param Element $element
@return string
Return the name of the method as we would expect it for this class .