WorldCupMatchRepositoryInterface.php 570 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Services\WorldCup\Repositories;
  3. use Carbon\Carbon;
  4. interface WorldCupMatchRepositoryInterface
  5. {
  6. public function getScheduleMatches(Carbon $now): array;
  7. public function getOpenMatches(Carbon $now): array;
  8. public function isOpenMatch(int $matchId, Carbon $now): bool;
  9. public function getFavoriteMatchIds(int $userId): array;
  10. public function isFavorite(int $userId, int $matchId): bool;
  11. public function addFavorite(int $userId, int $matchId): void;
  12. public function removeFavorite(int $userId, int $matchId): void;
  13. }