<?php
/**
 * @package Dotclear
 * @subpackage Backend
 *
 * @copyright Olivier Meunier & Association Dotclear
 * @copyright GPL-2.0-only
 */

use Dotclear\Core\Backend\Listing\Listing;
use Dotclear\Database\MetaRecord;

class adminGenericList extends Listing
{
    /**
     * Constructs a new instance.
     *
     * @param      mixed   $rs        The record
     * @param      mixed   $rs_count  The rs count
     */
    public function __construct(dcCore $core, $rs, $rs_count)   // @phpstan-ignore-line
    {
        if ($rs && !($rs instanceof MetaRecord)) {
            $rs = new MetaRecord($rs);
        }
        parent::__construct($rs, $rs_count);
    }
}
