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;
        }
    }
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;
        }
    }
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 ; } }
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
The actual method to call client s get method . Returns either a Model object or null on failure .