protected function replacePackageName(&$stub, $packageName) { $stub = str_replace('DummyPluginPackage', $packageName, $stub); return $this; }