Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Spork
Batch
BatchRunner
PHP Class Spork\Batch\BatchRunner
Show file
Open project: kriswallsmith/spork
Public Methods
Method
Description
__construct
(
mixed
$batch
,
callable
$callback
)
Constructor.
__invoke
(
SharedMemory
$shm
)
Method Details
__construct()
public
method
The callback should be a callable with the following signature: function($item, $index, $batch, $sharedMem)
public
__construct
(
mixed
$batch
,
callable
$callback
)
$batch
mixed
The batch
$callback
callable
The callback
__invoke()
public
method
public
__invoke
(
SharedMemory
$shm
)
$shm
Spork\SharedMemory