original_string: protected function __find($index, $type, $id) {
          try {
              $result = $this->client->get([
                  'index' => $index,
                  'type' => $type,
                  'id' => $id
              ]);
              if ($result['found']) {
                  return $this->_makeModel($result);
              } else {
                  return null;
              }
          } catch (\Exception $e) {
              trigger_error($e->getMessage(), E_USER_WARNING);
              return null;
          }
      }
code: protected function __find($index, $type, $id) {
          try {
              $result = $this->client->get([
                  'index' => $index,
                  'type' => $type,
                  'id' => $id
              ]);
              if ($result['found']) {
                  return $this->_makeModel($result);
              } else {
                  return null;
              }
          } catch (\Exception $e) {
              trigger_error($e->getMessage(), E_USER_WARNING);
              return null;
          }
      }
code_tokens: protected function __find ( $ index , $ type , $ id ) { try { $ result = $ this -> client -> get ( [ 'index' => $ index , 'type' => $ type , 'id' => $ id ] ) ; if ( $ result [ 'found' ] ) { return $ this -> _makeModel ( $ result ) ; } else { return null ; } } catch ( \ Exception $ e ) { trigger_error ( $ e -> getMessage ( ) , E_USER_WARNING ) ; return null ; } }
docstring: The actual method to call client's get method.
  Returns either a Model object or null on failure.
  
  @param string $index
  @param string $type
  @param sring|int $id
  @return null|Model
docstring_tokens: The actual method to call client s get method . Returns either a Model object or null on failure .