mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
25 lines
512 B
PHP
25 lines
512 B
PHP
<?php
|
|
|
|
namespace SilverStripe\FullTextSearch\Tests\BatchedProcessorTest;
|
|
|
|
use SilverStripe\QueuedJobs\Services\QueuedJob;
|
|
|
|
class BatchedProcessor_QueuedJobService
|
|
{
|
|
protected $jobs = array();
|
|
|
|
public function queueJob(QueuedJob $job, $startAfter = null, $userId = null, $queueName = null)
|
|
{
|
|
$this->jobs[] = array(
|
|
'job' => $job,
|
|
'startAfter' => $startAfter
|
|
);
|
|
return $job;
|
|
}
|
|
|
|
public function getJobs()
|
|
{
|
|
return $this->jobs;
|
|
}
|
|
}
|