Вход Регистрация
Файл: onlinepoisk.wm-scripts.ru/vendor/Pagerfanta/Adapter/AdapterInterface.php
Строк: 28
<?php

/*
 * This file is part of the Pagerfanta package.
 *
 * (c) Pablo Díez <pablodip@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace PagerfantaAdapter;

/**
 * AdapterInterface.
 *
 * @author Pablo Díez <pablodip@gmail.com>
 *
 * @api
 */
interface AdapterInterface
{
    
/**
     * Returns the number of results.
     *
     * @return integer The number of results.
     *
     * @api
     */
    
function getNbResults();

    
/**
     * Returns an slice of the results.
     *
     * @param integer $offset The offset.
     * @param integer $length The length.
     *
     * @return array|Traversable The slice.
     *
     * @api
     */
    
function getSlice($offset$length);
}
Онлайн: 1
Реклама