SerializableWorkerClosure
in package
The Serializeable Worker Closure
Table of Contents
Properties
Methods
- __construct() : mixed
- The constructor
- getInput() : Serializable
- Gets the data, that should be processed
- getSerializableClosure() : SerializableClosure
- setInput() : mixed
- Sets the data, that should be processed
Properties
$input
protected
mixed
$input
the input data that should be passed to the worker
$run
protected
SerializableClosure
$run
the code that should be executed in the worker
Methods
__construct()
The constructor
public
__construct(Closure $run[, Serializable $input = NULL ]) : mixed
Parameters
- $run : Closure
-
the closure, that the worker should run
- $input : Serializable = NULL
-
the data, that the worker should process
getInput()
Gets the data, that should be processed
public
getInput() : Serializable
Return values
Serializable —the data, that the worker should process
getSerializableClosure()
public
getSerializableClosure() : SerializableClosure
Return values
SerializableClosure —the closure, that the worker should run
setInput()
Sets the data, that should be processed
public
setInput(Serializable $input) : mixed
Parameters
- $input : Serializable
-
the data, that the worker should process