protected function replaceFileSnippet(&$stub, $fileSnippet) { $stub = str_replace('{{fileSnippet}}', $fileSnippet, $stub); return $this; }