MercureUpdatesGeneratorInterface.php 389 B

1234567891011121314151617
  1. <?php
  2. declare(strict_types=1);
  3. namespace Shlinkio\Shlink\Core\Mercure;
  4. use Shlinkio\Shlink\Core\Entity\Visit;
  5. use Symfony\Component\Mercure\Update;
  6. interface MercureUpdatesGeneratorInterface
  7. {
  8. public function newVisitUpdate(Visit $visit): Update;
  9. public function newOrphanVisitUpdate(Visit $visit): Update;
  10. public function newShortUrlVisitUpdate(Visit $visit): Update;
  11. }