Joli\Jane\Generator\Naming::replaceDollar PHP Method

replaceDollar() protected method

protected replaceDollar ( $name ) : mixed
$name
return 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;
    }