protected function makeTransformer(string $name, string $stub) : string { $stub = $this->replaceNamespace($stub); $stub = $this->replaceClass($stub, $name); $stub = $this->replaceModel($stub, $name); return $stub; }