PHP Class Mpociot\CaptainHook\Jobs\TriggerWebhooksJob

Inheritance: implements Illuminate\Contracts\Queue\ShouldQueue, use trait Illuminate\Bus\Queueable, use trait Illuminate\Queue\InteractsWithQueue, use trait Illuminate\Queue\SerializesModels
Datei anzeigen Open project: mpociot/captainhook

Protected Properties

Property Type Description
$eventData mixed The event data to be posted to our hooks.
$webhooks array | Illuminate\Support\Collection All the webhooks that should be executed.

Public Methods

Method Description
__construct ( array | Collection $webhooks, mixed $eventData ) Create a new job instance.
handle ( ) : void Execute the job.

Private Methods

Method Description
resolveCallable ( string | callable $transformer, $defaultMethodName ) : callable Resolves a string or callable to a valid callable.

Method Details

__construct() public method

Create a new job instance.
public __construct ( array | Collection $webhooks, mixed $eventData )
$webhooks array | Illuminate\Support\Collection
$eventData mixed

handle() public method

Execute the job.
public handle ( ) : void
return void

Property Details

$eventData protected_oe property

The event data to be posted to our hooks.
protected mixed $eventData
return mixed

$webhooks protected_oe property

All the webhooks that should be executed.
protected array|Collection,Illuminate\Support $webhooks
return array | Illuminate\Support\Collection