123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- declare(strict_types=1);
- namespace Shlinkio\Shlink\Core\Service;
- use Laminas\Paginator\Paginator;
- use Shlinkio\Shlink\Common\Util\DateRange;
- use Shlinkio\Shlink\Core\Entity\ShortUrl;
- use Shlinkio\Shlink\Core\Exception\ShortUrlNotFoundException;
- use Shlinkio\Shlink\Core\Model\ShortUrlMeta;
- interface ShortUrlServiceInterface
- {
- /**
- * @param string[] $tags
- * @param array|string|null $orderBy
- *
- * @return ShortUrl[]|Paginator
- */
- public function listShortUrls(
- int $page = 1,
- ?string $searchQuery = null,
- array $tags = [],
- $orderBy = null,
- ?DateRange $dateRange = null
- );
- /**
- * @param string[] $tags
- * @throws ShortUrlNotFoundException
- */
- public function setTagsByShortCode(string $shortCode, array $tags = []): ShortUrl;
- /**
- * @throws ShortUrlNotFoundException
- */
- public function updateMetadataByShortCode(string $shortCode, ShortUrlMeta $shortUrlMeta): ShortUrl;
- }
|