Class yii\queue\closure\Job

Inheritanceyii\queue\closure\Job
Implementsyii\queue\JobInterface
Source Code https://github.com/yiisoft/yii2-queue/blob/master/closure/Job.php

Closure Job.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$serialized string Serialized closure yii\queue\closure\Job

Public Methods

Hide inherited methods

MethodDescriptionDefined By
execute() Unserializes and executes a closure. yii\queue\closure\Job

Property Details

$serialized public property

Serialized closure

public string $serialized null

Method Details

execute() public method

Unserializes and executes a closure.

public void|mixed execute ( $queue )
$queue yii\queue\Queue

Which pushed and is handling the job

return void|mixed

Result of the job execution