/**
* Creates an instance of this class
*
- * @param $minerInstance An instance of a MinerHelper class
* @return $stateInstance An instance of a Stateable class
*/
- public final static function createMinerInitState (MinerHelper $minerInstance) {
+ public final static function createMinerInitState () {
// Get new instance
$stateInstance = new MinerInitState();
- // Set the miner instance
- $stateInstance->setMinerInstance($minerInstance);
-
// Return the prepared instance
return $stateInstance;
}
*/
public function encryptedMessageGenerated () {
// Change the state now to 'virgin'
- MinerStateFactory::createMinerStateInstanceByName('virgin', $this->getMinerInstance());
+ MinerStateFactory::createMinerStateInstanceByName('virgin');
}
}