Example #1
0
 /**
  * @param BaseJob     $job      The job/source creating the result
  * @param mixed       $result   The result to store
  * @param string|null $resultId An optional id with which to reference this result. If none given, the $job's ID is used.
  *
  * @return mixed|boolean
  */
 protected function publishResult(BaseJob $job, $result, $resultId = null)
 {
     $_resultId = $resultId ?: $job->getJobId();
     if (!$job instanceof PublishesResults) {
         return false;
     }
     return $job->publishResult($_resultId, $result);
 }