silverstripe-fulltextsearch/tests/BatchedProcessorTest/BatchedProcessor_QueuedJobS...

25 lines
508 B
PHP
Raw Permalink Normal View History

2017-04-21 02:23:27 +02:00
<?php
namespace SilverStripe\FullTextSearch\Tests\BatchedProcessorTest;
use Symbiote\QueuedJobs\Services\QueuedJob;
2017-04-21 02:23:27 +02:00
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;
}
}