silverstripe-fulltextsearch/tests/BatchedProcessorTest/BatchedProcessor_QueuedJobService.php
2017-04-21 12:23:27 +12:00

23 lines
463 B
PHP

<?php
namespace SilverStripe\FullTextSearch\Tests\BatchedProcessorTest;
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;
}
}