public function createClassName($string, $suffix = false)
    {
        $name = Inflector::camelize($string);
    
        if ($suffix !== false && StringHelper::endsWith($name, $suffix, false)) {
            $name = substr($name, 0, -(strlen($suffix)));
        }
    
        return $name . $suffix;
    }
public function createClassName($string, $suffix = false)
    {
        $name = Inflector::camelize($string);
    
        if ($suffix !== false && StringHelper::endsWith($name, $suffix, false)) {
            $name = substr($name, 0, -(strlen($suffix)));
        }
    
        return $name . $suffix;
    }
public function createClassName ( $ string , $ suffix = false ) { $ name = Inflector :: camelize ( $ string ) ; if ( $ suffix !== false && StringHelper :: endsWith ( $ name , $ suffix , false ) ) { $ name = substr ( $ name , 0 , - ( strlen ( $ suffix ) ) ) ; } return $ name . $ suffix ; }
Generates a class name with camelcase style and specific suffix, if not already provided

@param string $string The name of the class, e.g.: hello_word would
@param string $suffix The suffix to append on the class name if not eixsts, e.g.: MySuffix
@return string The class name e.g. HelloWorldMySuffix
Generates a class name with camelcase style and specific suffix if not already provided