123456789101112131415161718192021222324252627 |
- <?php
-
- namespace Illuminate\Console\Scheduling;
-
- use DateTimeInterface;
-
- interface SchedulingMutex
- {
- /**
- * Attempt to obtain a scheduling mutex for the given event.
- *
- * @param \Illuminate\Console\Scheduling\Event $event
- * @param \DateTimeInterface $time
- * @return bool
- */
- public function create(Event $event, DateTimeInterface $time);
-
- /**
- * Determine if a scheduling mutex exists for the given event.
- *
- * @param \Illuminate\Console\Scheduling\Event $event
- * @param \DateTimeInterface $time
- * @return bool
- */
- public function exists(Event $event, DateTimeInterface $time);
- }
|