12345678910111213141516171819202122232425262728293031 |
- <?php
-
- namespace Illuminate\Console\Scheduling;
-
- interface EventMutex
- {
- /**
- * Attempt to obtain an event mutex for the given event.
- *
- * @param \Illuminate\Console\Scheduling\Event $event
- * @return bool
- */
- public function create(Event $event);
-
- /**
- * Determine if an event mutex exists for the given event.
- *
- * @param \Illuminate\Console\Scheduling\Event $event
- * @return bool
- */
- public function exists(Event $event);
-
- /**
- * Clear the event mutex for the given event.
- *
- * @param \Illuminate\Console\Scheduling\Event $event
- * @return void
- */
- public function forget(Event $event);
- }
|