class Illuminate / Console / Scheduling / CallbackEvent
You are viewing an older version of the documentation. For the latest, please visit master documentation.

CallbackEvent

Extends

Properties

protected

$callback string

The callback to call.

Default: null
protected

$parameters array

The parameters to pass to the method.

Default: null

Methods

public

__construct ( EventMutex $mutex , $callback , array $parameters , $timezone ) : void

Create a new event instance.

Parameters

public

run ( Container $container ) : mixed

Run the given event.

Parameters

protected

removeMutex ( ) : void

Clear the mutex for the event.

public

withoutOverlapping ( $expiresAt ) : $this

Do not allow the event to overlap each other.

Parameters

  • $expiresAt int
public

onOneServer ( ) : $this

Allow the event to only run on one server for each cron expression.

public

mutexName ( ) : string

Get the mutex name for the scheduled command.

public

getSummaryForDisplay ( ) : string

Get the summary of the event for display.