*/
private $outgoingQueueInstance = null;
+ /**
+ * Every procuded item/unit/etc. usually have a source
+ */
+ private $sourceInstance = null;
+
/**
* Protected constructor
*
}
/**
- * Setter for out-going work queue
+ * Setter for out-going work queue
*
* @param $outgoingQueueInstance The out-going work queue instance
* @return void
}
/**
- * Getter for out-going work queue
+ * Getter for out-going work queue
*
* @param $outgoingQueueInstance The out-going work queue instance
*/
return $this->outgoingQueueInstance;
}
+ /**
+ * Setter for a Sourceable instance
+ *
+ * @param $sourceInstance The Sourceable instance
+ * @return void
+ */
+ protected function setSourceInstance (Sourceable $sourceInstance) {
+ $this->sourceInstance = $sourceInstance;
+ }
+
+ /**
+ * Getter for a Sourceable instance
+ *
+ * @param $sourceInstance The Sourceable instance
+ */
+ protected function getSourceInstance () {
+ return $this->sourceInstance;
+ }
+
/**
* Initializes this producer, this method must be overwritten.
*