PHP 인터페이스 Spork\Batch\Strategy\StrategyInterface

또한 보기: BatchJob::__invoke()
파일 보기 프로젝트 열기: kriswallsmith/spork

공개 메소드들

메소드 설명
createBatches ( mixed $data ) : array | Traversable Creates an iterator for the supplied data.
createRunner ( mixed $batch, callable $callback ) : callable Creates a batch runner for the supplied list.

메소드 상세

createBatches() 공개 메소드

Creates an iterator for the supplied data.
public createBatches ( mixed $data ) : array | Traversable
$data mixed The raw batch data
리턴 array | Traversable An iterator of batches

createRunner() 공개 메소드

A batch runner is a callable that is passed to ProcessManager::fork() that should run each item in the supplied batch through a callable.
public createRunner ( mixed $batch, callable $callback ) : callable
$batch mixed A batch of items
$callback callable The batch callback
리턴 callable A callable for the child process