private function _get_id(string $request, $params): ?string
  {
    if ( $this->check() ){
      if ( $params ){
        return $this->db->select_one('bbn_observers', 'id', [
          'id_string' => $this->_get_id_string($request, $params)
        ]);
      }
      return $this->db->get_one("
        SELECT id
        FROM bbn_observers
        WHERE `request` LIKE ?
        AND `params` IS NULL
        AND `public` = 1",
        $request);
    }
    return null;
  }
private function _get_id(string $request, $params): ?string
  {
    if ( $this->check() ){
      if ( $params ){
        return $this->db->select_one('bbn_observers', 'id', [
          'id_string' => $this->_get_id_string($request, $params)
        ]);
      }
      return $this->db->get_one("
        SELECT id
        FROM bbn_observers
        WHERE `request` LIKE ?
        AND `params` IS NULL
        AND `public` = 1",
        $request);
    }
    return null;
  }
private function _get_id ( string $ request , $ params ) : ? string { if ( $ this -> check ( ) ) { if ( $ params ) { return $ this -> db -> select_one ( 'bbn_observers' , 'id' , [ 'id_string' => $ this -> _get_id_string ( $ request , $ params ) ] ) ; } return $ this -> db -> get_one ( "
        SELECT id
        FROM bbn_observers
        WHERE `request` LIKE ?
        AND `params` IS NULL
        AND `public` = 1" , $ request ) ; } return null ; }
Returns the ID of an observer with public = 1 and with similar request and params.

@param string $request
@param string $params
@return null|string
Returns the ID of an observer with public = 1 and with similar request and params .