예제 #1
0
 /**
  * Retrieve reporter instance
  *
  * @return Enterprise_Queue_Model_Worker_Reporter_Interface
  */
 public function getReporter()
 {
     return $this->_queue->getAdapter() instanceof Enterprise_Queue_Model_Adapter_Db ? Mage::getModel('enterprise_queue/worker_reporter_native') : Mage::getModel('enterprise_queue/worker_reporter_null');
 }