src/Entity/Mail.php
protected function methodName($action, $field)
    {
        if (substr($field, -1, 1) === 's' && $action != 'clear') {
            $field = substr($field, 0, -1);
        }

        return $action . ucfirst(strtolower($field));
    }
protected function methodName($action, $field)
    {
        if (substr($field, -1, 1) === 's' && $action != 'clear') {
            $field = substr($field, 0, -1);
        }

        return $action . ucfirst(strtolower($field));
    }
protected function methodName ( $ action , $ field ) { if ( substr ( $ field , - 1 , 1 ) === 's' && $ action != 'clear' ) { $ field = substr ( $ field , 0 , - 1 ) ; } return $ action . ucfirst ( strtolower ( $ field ) ) ; }
Returns the method name given a action and a field name

@param $action
@param $field

@return string
Returns the method name given a action and a field name