]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/producer/class_BaseProducer.php
Continued on test-unit producer, fixed copyright:
[hub.git] / application / hub / main / producer / class_BaseProducer.php
index 46fd68e2d9ca9ed80e553bb5f65a2ef8ce1fab55..80f6c2afc54a010a083dddbf8733edd8b7186dae 100644 (file)
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-class BaseProducer extends BaseFrameworkSystem {
+abstract class BaseProducer extends BaseFrameworkSystem {
        /**
         * Protected constructor
         *
@@ -31,7 +31,17 @@ class BaseProducer extends BaseFrameworkSystem {
        protected function __construct ($className) {
                // Call parent constructor
                parent::__construct($className);
+
+               // Initialize all producers
+               $this->initProducer();
        }
+
+       /**
+        * Initializes this producer, this method must be overwritten.
+        *
+        * @return      void
+        */
+       abstract protected function initProducer();
 }
 
 // [EOF]