original_string: protected function sendCommand($cmd)
      {
          if ($this->shutdown) {
              throw new Exception('This server has been shut down');
          }
  
          fwrite($this->conn,
                 $cmd . "\r\n",
                 Connection::stringLength($cmd . "\r\n"));
      }
code: protected function sendCommand($cmd)
      {
          if ($this->shutdown) {
              throw new Exception('This server has been shut down');
          }
  
          fwrite($this->conn,
                 $cmd . "\r\n",
                 Connection::stringLength($cmd . "\r\n"));
      }
code_tokens: protected function sendCommand ( $ cmd ) { if ( $ this -> shutdown ) { throw new Exception ( 'This server has been shut down' ) ; } fwrite ( $ this -> conn , $ cmd . "\r\n" , Connection :: stringLength ( $ cmd . "\r\n" ) ) ; }
docstring: Send a command.
  
  @param string $cmd The command to send
  
  @throws \MHlavac\Gearman\Exception
docstring_tokens: Send a command .