files->get($this->getStub()); return $this->replaceClass($stub, $name); } /** * Replace the class name for the given stub * * @param string $stub * @param string $name * @return string */ protected function replaceClass($stub, $name) { // Name is already just the class name from qualifyClass() return str_replace('{{ class }}', $name, $stub); } }