]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/producer/class_BaseProducer.php
Swapped code, moved/renamed classes and interfaces:
[hub.git] / application / hub / main / producer / class_BaseProducer.php
index 81c21284a219fd63261fb1ff30445e8f01566d06..920c38b66f71b0fbad4a938fa7fba34dbdf50e00 100644 (file)
@@ -27,11 +27,6 @@ abstract class BaseProducer extends BaseFrameworkSystem {
         */
        private $outgoingQueueInstance = null;
 
-       /**
-        * Every procuded item/unit/etc. usually have a source
-        */
-       private $sourceInstance = null;
-
        /**
         * Protected constructor
         *
@@ -55,7 +50,7 @@ abstract class BaseProducer extends BaseFrameworkSystem {
         * @param       $outgoingQueueInstance  The out-going work queue instance
         * @return      void
         */
-       private function setOutgoingQueueInstance (Stackable $outgoingQueueInstance) {
+       private final function setOutgoingQueueInstance (Stackable $outgoingQueueInstance) {
                $this->outgoingQueueInstance = $outgoingQueueInstance;
        }
 
@@ -64,29 +59,10 @@ abstract class BaseProducer extends BaseFrameworkSystem {
         *
         * @param       $outgoingQueueInstance  The out-going work queue instance
         */
-       protected function getOutgoingQueueInstance () {
+       protected final function getOutgoingQueueInstance () {
                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.
         *