mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
24 lines
556 B
PHP
24 lines
556 B
PHP
<?php
|
|
namespace Shlinkio\Shlink\Core\Service;
|
|
|
|
use Shlinkio\Shlink\Core\Entity\ShortUrl;
|
|
use Shlinkio\Shlink\Core\Exception\InvalidShortCodeException;
|
|
use Zend\Paginator\Paginator;
|
|
|
|
interface ShortUrlServiceInterface
|
|
{
|
|
/**
|
|
* @param int $page
|
|
* @return ShortUrl[]|Paginator
|
|
*/
|
|
public function listShortUrls($page = 1);
|
|
|
|
/**
|
|
* @param string $shortCode
|
|
* @param string[] $tags
|
|
* @return ShortUrl
|
|
* @throws InvalidShortCodeException
|
|
*/
|
|
public function setTagsByShortCode($shortCode, array $tags = []);
|
|
}
|