Joli\Jane\Generator\Naming::replaceDollar PHP Méthode

replaceDollar() protected méthode

protected replaceDollar ( $name ) : mixed
$name
Résultat mixed
    protected function replaceDollar($name)
    {
        if (preg_match('/\\$/', $name)) {
            $name = preg_replace_callback('/\\$([a-z])/', function ($matches) {
                return 'dollar' . ucfirst($matches[1]);
            }, $name);
        }
        return $name;
    }