<?php

namespace App\Legacy\Data;

interface ListDataHandlerInterface
{
    /**
     * Fetch Data
     * @param string $module
     * @param array $criteria
     * @param int $offset
     * @param int $limit
     * @param array $sort
     * @return ListData
     */
    public function fetch(
        string $module,
        array $criteria = [],
        int $offset = -1,
        int $limit = -1,
        array $sort = []
    ): ListData;
}
