original_string: protected function replaceClassNameSingular(&$stub, $name)
      {
          $stub = str_replace(
              '[[DummyClassNameSingular]]', Str::singular($this->getNameInput()), $stub
          );
  
          return $this;
      }
code: protected function replaceClassNameSingular(&$stub, $name)
      {
          $stub = str_replace(
              '[[DummyClassNameSingular]]', Str::singular($this->getNameInput()), $stub
          );
  
          return $this;
      }
code_tokens: protected function replaceClassNameSingular ( & $ stub , $ name ) { $ stub = str_replace ( '[[DummyClassNameSingular]]' , Str :: singular ( $ this -> getNameInput ( ) ) , $ stub ) ; return $ this ; }
docstring: Replace the class name into singular form for the given stub.
  Used in the model class name declaration in "service stub".
  
  @param  string  $stub
  @param  string  $name
  @return $this
docstring_tokens: Replace the class name into singular form for the given stub . Used in the model class name declaration in service stub .