original_string: public function emit(ResponseInterface $response)
      {
          $filename = $linenum = null;
          if (headers_sent($filename, $linenum)) {
              throw new RuntimeException(sprintf(
                  'Unable to emit response; headers already sent in "%s" '
                  . 'on line "%s".',
                  $filename,
                  $linenum
              ));
          }
          $this
              ->emitStatusLine($response)
              ->emitHeaders($response)
              ->emitBody($response);
      }
code: public function emit(ResponseInterface $response)
      {
          $filename = $linenum = null;
          if (headers_sent($filename, $linenum)) {
              throw new RuntimeException(sprintf(
                  'Unable to emit response; headers already sent in "%s" '
                  . 'on line "%s".',
                  $filename,
                  $linenum
              ));
          }
          $this
              ->emitStatusLine($response)
              ->emitHeaders($response)
              ->emitBody($response);
      }
code_tokens: public function emit ( ResponseInterface $ response ) { $ filename = $ linenum = null ; if ( headers_sent ( $ filename , $ linenum ) ) { throw new RuntimeException ( sprintf ( 'Unable to emit response; headers already sent in "%s" ' . 'on line "%s".' , $ filename , $ linenum ) ) ; } $ this -> emitStatusLine ( $ response ) -> emitHeaders ( $ response ) -> emitBody ( $ response ) ; }
docstring: Emits the response.
  
  @param \Psr\Http\Message\ResponseInterface $response The response
  
  @throws \RuntimeException If headers is already sent
docstring_tokens: Emits the response .