WorldCupScheduleRepositoryInterface.php 669 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Services\WorldCup\Repositories;
  3. interface WorldCupScheduleRepositoryInterface
  4. {
  5. public function allMatches(): array;
  6. public function matchesByDate(string $scheduleDate): array;
  7. public function unresolvedMatchesByDate(string $scheduleDate): array;
  8. public function updateMatchByNoAndDate(
  9. int $matchNo,
  10. string $scheduleDate,
  11. array $attributes
  12. ): bool;
  13. public function updateMatchByNo(int $matchNo, array $attributes): bool;
  14. public function updateMatchById(int $matchId, array $attributes): bool;
  15. public function writeScheduleAudit(string $actor, string $action, array $payload): void;
  16. }