public function replaceContents(Array $replacements) {
    $this->writeContents(
      str_replace(
                  array_keys($replacements),
                  array_values($replacements),
                  $this->getContents()
                 )
    );
    return $this;
  }
public function replaceContents(Array $replacements) {
    $this->writeContents(
      str_replace(
                  array_keys($replacements),
                  array_values($replacements),
                  $this->getContents()
                 )
    );
    return $this;
  }
public function replaceContents ( Array $ replacements ) { $ this -> writeContents ( str_replace ( array_keys ( $ replacements ) , array_values ( $ replacements ) , $ this -> getContents ( ) ) ) ; return $ this ; }
Replaces the contents of the file
@deprecated
Replaces the contents of the file