original_string: private function getClient($clientName)
      {
          if (!array_key_exists($clientName, $this->clients)) {
              throw new InvalidArgumentException(sprintf('The elastica client with name "%s" is not defined', $clientName));
          }
  
          return $this->clients[$clientName]['reference'];
      }
code: private function getClient($clientName)
      {
          if (!array_key_exists($clientName, $this->clients)) {
              throw new InvalidArgumentException(sprintf('The elastica client with name "%s" is not defined', $clientName));
          }
  
          return $this->clients[$clientName]['reference'];
      }
code_tokens: private function getClient ( $ clientName ) { if ( ! array_key_exists ( $ clientName , $ this -> clients ) ) { throw new InvalidArgumentException ( sprintf ( 'The elastica client with name "%s" is not defined' , $ clientName ) ) ; } return $ this -> clients [ $ clientName ] [ 'reference' ] ; }
docstring: Returns a reference to a client given its configured name.
  
  @param string $clientName
  
  @return Reference
  
  @throws InvalidArgumentException
docstring_tokens: Returns a reference to a client given its configured name .