芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/m4tthumphrey/php-gitlab-api/src/ResultPagerInterface.php
* (c) Graham Campbell
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Gitlab; use Generator; use Gitlab\Api\AbstractApi; /** * This is the result pager interface. * * @author Ramon de la Fuente
* @author Mitchel Verschoof
* @author Graham Campbell
*/ interface ResultPagerInterface { /** * Fetch a single result from an api call. * * @param AbstractApi $api * @param string $method * @param array $parameters * * @throws \Http\Client\Exception * * @return array */ public function fetch(AbstractApi $api, string $method, array $parameters = []): array; /** * Fetch all results from an api call. * * @param AbstractApi $api * @param string $method * @param array $parameters * * @throws \Http\Client\Exception * * @return array */ public function fetchAll(AbstractApi $api, string $method, array $parameters = []): array; /** * Lazily fetch all results from an api call. * * @param AbstractApi $api * @param string $method * @param array $parameters * * @throws \Http\Client\Exception * * @return \Generator */ public function fetchAllLazy(AbstractApi $api, string $method, array $parameters = []): Generator; /** * Check to determine the availability of a next page. * * @return bool */ public function hasNext(): bool; /** * Fetch the next page. * * @throws \Http\Client\Exception * * @return array */ public function fetchNext(): array; /** * Check to determine the availability of a previous page. * * @return bool */ public function hasPrevious(): bool; /** * Fetch the previous page. * * @throws \Http\Client\Exception * * @return array */ public function fetchPrevious(): array; /** * Fetch the first page. * * @throws \Http\Client\Exception * * @return array */ public function fetchFirst(): array; /** * Fetch the last page. * * @throws \Http\Client\Exception * * @return array */ public function fetchLast(): array; }