original_string: public static function getKeys($filter = []): array
      {
          /* @var $class LightModel */
          $className = get_called_class();
          $class = new $className;
          $tableKey = $class->getKeyName();
  
          $sql = 'SELECT ' . $tableKey . ' FROM ' . $class->getTableName() . ' WHERE 1=1';
          $params = self::handleFilter($sql, $filter, $class);
  
          $query = DB::getConnection()->prepare($sql);
          $query->execute($params);
  
          $res = [];
  
          foreach ($query->fetchAll() as $key => $value)
          {
              $res[] = $value[0];
          }
  
          return $res;
      }
code: public static function getKeys($filter = []): array
      {
          /* @var $class LightModel */
          $className = get_called_class();
          $class = new $className;
          $tableKey = $class->getKeyName();
  
          $sql = 'SELECT ' . $tableKey . ' FROM ' . $class->getTableName() . ' WHERE 1=1';
          $params = self::handleFilter($sql, $filter, $class);
  
          $query = DB::getConnection()->prepare($sql);
          $query->execute($params);
  
          $res = [];
  
          foreach ($query->fetchAll() as $key => $value)
          {
              $res[] = $value[0];
          }
  
          return $res;
      }
code_tokens: public static function getKeys ( $ filter = [ ] ) : array { /* @var $class LightModel */ $ className = get_called_class ( ) ; $ class = new $ className ; $ tableKey = $ class -> getKeyName ( ) ; $ sql = 'SELECT ' . $ tableKey . ' FROM ' . $ class -> getTableName ( ) . ' WHERE 1=1' ; $ params = self :: handleFilter ( $ sql , $ filter , $ class ) ; $ query = DB :: getConnection ( ) -> prepare ( $ sql ) ; $ query -> execute ( $ params ) ; $ res = [ ] ; foreach ( $ query -> fetchAll ( ) as $ key => $ value ) { $ res [ ] = $ value [ 0 ] ; } return $ res ; }
docstring: Get array of keys that match the specified filters.
  Can be used when loading large quantities of models is not an option.
  
  @param array $filter
  @return array
docstring_tokens: Get array of keys that match the specified filters . Can be used when loading large quantities of models is not an option .