/**
* 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;
}
*/
public function encryptedMessageGenerated () {
// Change the state now to 'virgin'
- CruncherStateFactory::createCruncherStateInstanceByName('virgin', $this->getCruncherInstance());
+ CruncherStateFactory::createCruncherStateInstanceByName('virgin');
}
}