]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/cruncher/init/class_CruncherInitState.php
Fixed a lot stuff for cruncher (missing methods, etc.)
[hub.git] / application / hub / main / states / cruncher / init / class_CruncherInitState.php
index bccf3de5da21ef7a999a003351f142da1c84067e..8c1938590e4949c01bee3ce1424105c9cfffc142 100644 (file)
@@ -38,16 +38,12 @@ class CruncherInitState extends BaseCruncherState implements Stateable {
        /**
         * Creates an instance of this class
         *
-        * @param       $cruncherInstance       An instance of a CruncherHelper class
         * @return      $stateInstance  An instance of a Stateable class
         */
-       public final static function createCruncherInitState (CruncherHelper $cruncherInstance) {
+       public final static function createCruncherInitState () {
                // Get new instance
                $stateInstance = new CruncherInitState();
 
-               // Set the cruncher instance
-               $stateInstance->setCruncherInstance($cruncherInstance);
-
                // Return the prepared instance
                return $stateInstance;
        }
@@ -71,7 +67,7 @@ class CruncherInitState extends BaseCruncherState implements Stateable {
         */
        public function encryptedMessageGenerated () {
                // Change the state now to 'virgin'
-               CruncherStateFactory::createCruncherStateInstanceByName('virgin', $this->getCruncherInstance());
+               CruncherStateFactory::createCruncherStateInstanceByName('virgin');
        }
 }