| 1 | <?php  | 
            ||
| 12 | class QueuedJobHandler extends AbstractProcessingHandler  | 
            ||
| 13 | { | 
            ||
| 14 | use Injectable;  | 
            ||
| 15 | |||
| 16 | /** @var QueuedJob */  | 
            ||
| 17 | protected $job;  | 
            ||
| 18 | |||
| 19 | /** @var QueuedJobDescriptor */  | 
            ||
| 20 | protected $jobDescriptor;  | 
            ||
| 21 | |||
| 22 | public function __construct(QueuedJob $job, QueuedJobDescriptor $jobDescriptor)  | 
            ||
| 27 | |||
| 28 | /**  | 
            ||
| 29 | * @return QueuedJob  | 
            ||
| 30 | */  | 
            ||
| 31 | public function getJob()  | 
            ||
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * @return QueuedJobDescriptor  | 
            ||
| 38 | */  | 
            ||
| 39 | public function getJobDescriptor()  | 
            ||
| 43 | |||
| 44 | /**  | 
            ||
| 45 | * Writes the record down to the log of the implementing handler  | 
            ||
| 46 | *  | 
            ||
| 47 | * @param array $record  | 
            ||
| 48 | * @return void  | 
            ||
| 49 | * @throws \SilverStripe\ORM\ValidationException  | 
            ||
| 50 | */  | 
            ||
| 51 | protected function write(array $record)  | 
            ||
| 57 | }  | 
            ||
| 58 |