original_string: protected function replaceVersion(string &$stub, string $version)
      {
  
          if (strlen($version) > 0)
              $stub = str_replace('v1', $version, $stub);
  
          return $this;
      }
code: protected function replaceVersion(string &$stub, string $version)
      {
  
          if (strlen($version) > 0)
              $stub = str_replace('v1', $version, $stub);
  
          return $this;
      }
code_tokens: protected function replaceVersion ( string & $ stub , string $ version ) { if ( strlen ( $ version ) > 0 ) $ stub = str_replace ( 'v1' , $ version , $ stub ) ; return $ this ; }
docstring: Replace the endpoint version for the given stub.
  
  @param string $stub
  @param string $version
  
  @return $this
docstring_tokens: Replace the endpoint version for the given stub .