PHP Class Barryvdh\Queue\Console\AsyncCommand

Inheritance: extends Illuminate\Console\Command
Datei anzeigen Open project: barryvdh/laravel-async-queue

Protected Properties

Property Type Description
$description string The console command description.
$name string The console command name.
$worker Illuminate\Queue\Worker The queue worker instance.

Public Methods

Method Description
__construct ( Worker $worker ) : void Create a new queue listen command.
fire ( WorkerOptions $options ) : void Execute the console command.

Protected Methods

Method Description
getArguments ( ) : array Get the console command arguments.
getOptions ( ) : array Get the console command arguments.
processJob ( $connectionName, $id, $options ) Process the job

Method Details

__construct() public method

Create a new queue listen command.
public __construct ( Worker $worker ) : void
$worker Illuminate\Queue\Worker
return void

fire() public method

Execute the console command.
public fire ( WorkerOptions $options ) : void
$options Illuminate\Queue\WorkerOptions
return void

getArguments() protected method

Get the console command arguments.
protected getArguments ( ) : array
return array

getOptions() protected method

Get the console command arguments.
protected getOptions ( ) : array
return array

processJob() protected method

Process the job
protected processJob ( $connectionName, $id, $options )

Property Details

$description protected_oe property

The console command description.
protected string $description
return string

$name protected_oe property

The console command name.
protected string $name
return string

$worker protected_oe property

The queue worker instance.
protected Worker,Illuminate\Queue $worker
return Illuminate\Queue\Worker