public function swap(array $replacements)
    {
        foreach ($replacements as $from => $to) {
            $this->replace($from, $this->normalize($to));
        }
    }
public function swap(array $replacements)
    {
        foreach ($replacements as $from => $to) {
            $this->replace($from, $this->normalize($to));
        }
    }
public function swap ( array $ replacements ) { foreach ( $ replacements as $ from => $ to ) { $ this -> replace ( $ from , $ this -> normalize ( $ to ) ) ; } }
Inits renaming process.

@param  array $replacements  Values map to replace.

@return void
Inits renaming process .