SchedulingMutex.php 658B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Illuminate\Console\Scheduling;
  3. use DateTimeInterface;
  4. interface SchedulingMutex
  5. {
  6. /**
  7. * Attempt to obtain a scheduling mutex for the given event.
  8. *
  9. * @param \Illuminate\Console\Scheduling\Event $event
  10. * @param \DateTimeInterface $time
  11. * @return bool
  12. */
  13. public function create(Event $event, DateTimeInterface $time);
  14. /**
  15. * Determine if a scheduling mutex exists for the given event.
  16. *
  17. * @param \Illuminate\Console\Scheduling\Event $event
  18. * @param \DateTimeInterface $time
  19. * @return bool
  20. */
  21. public function exists(Event $event, DateTimeInterface $time);
  22. }