private function buildProperMethodName($prefix, $propertyName)
    {
        $methodName = explode('_', $propertyName);
        $methodName = array_map(function ($str) {
            return ucfirst($str);
        }, $methodName);

        return $prefix.implode('', $methodName);
    }
private function buildProperMethodName($prefix, $propertyName)
    {
        $methodName = explode('_', $propertyName);
        $methodName = array_map(function ($str) {
            return ucfirst($str);
        }, $methodName);

        return $prefix.implode('', $methodName);
    }
private function buildProperMethodName ( $ prefix , $ propertyName ) { $ methodName = explode ( '_' , $ propertyName ) ; $ methodName = array_map ( function ( $ str ) { return ucfirst ( $ str ) ; } , $ methodName ) ; return $ prefix . implode ( '' , $ methodName ) ; }
Builds a valid method name for property name; Replaces every '_' by ''
and apply ucfirst to every words seperated by an underscore.

@param string $prefix       the prefix to prepend to the method name (example: 'get', 'set', 'is')
@param string $propertyName

@return string a valid method name
Builds a valid method name for property name ; Replaces every _ by and apply ucfirst to every words seperated by an underscore .