original_string: public static function spawn($cmd, $cwd = null, LoggerInterface $logger = null)
      {
          return new self($cmd, $cwd, $logger);
      }
code: public static function spawn($cmd, $cwd = null, LoggerInterface $logger = null)
      {
          return new self($cmd, $cwd, $logger);
      }
code_tokens: public static function spawn ( $ cmd , $ cwd = null , LoggerInterface $ logger = null ) { return new self ( $ cmd , $ cwd , $ logger ) ; }
docstring: Spawn a new instance of Expect for the given command.
  You can optionally specify a working directory and a
  PSR compatible logger to use.
  
  @param  string $cmd
  @param  string $cwd
  @param LoggerInterface $logger
  
  @return $this
docstring_tokens: Spawn a new instance of Expect for the given command . You can optionally specify a working directory and a PSR compatible logger to use .