cleanString() public static method

Clean a string to make it valid as PHP variable
public static cleanString ( string $string, boolean $keepMultipleUnderscores = true ) : string
$string string the string to clean
$keepMultipleUnderscores boolean optional, allows to keep the multiple consecutive underscores
return string
 /**
  * @param string $name
  * @return string
  */
 protected function getParameterName($name)
 {
     return lcfirst(AbstractModel::cleanString($name));
 }