original_string: public function exec($command)
      {
          if (!$this->connected) {
              throw new NotAuthenticatedException('Client has not connected to the Rcon server.');
          }
  
          $this->write(self::SERVERDATA_EXECCOMMAND, $command);
  
          return $this->read()[0]['S1'];
      }
code: public function exec($command)
      {
          if (!$this->connected) {
              throw new NotAuthenticatedException('Client has not connected to the Rcon server.');
          }
  
          $this->write(self::SERVERDATA_EXECCOMMAND, $command);
  
          return $this->read()[0]['S1'];
      }
code_tokens: public function exec ( $ command ) { if ( ! $ this -> connected ) { throw new NotAuthenticatedException ( 'Client has not connected to the Rcon server.' ) ; } $ this -> write ( self :: SERVERDATA_EXECCOMMAND , $ command ) ; return $ this -> read ( ) [ 0 ] [ 'S1' ] ; }
docstring: Executes a command on the server.
  
  @param string $command
  @return string
docstring_tokens: Executes a command on the server .