/**
* Creates an instance of this class
*
- * @param $crawlerInstance An instance of a Crawler class
- * @return $stateInstance An instance of a Stateable class
+ * @return $stateInstance An instance of a Stateable class
*/
- public static final function createCrawlerInitState (Crawler $crawlerInstance) {
+ public static final function createCrawlerInitState () {
// Get new instance
$stateInstance = new CrawlerInitState();
- // Set the crawler instance
- $stateInstance->setCrawlerInstance($crawlerInstance);
-
// Return the prepared instance
return $stateInstance;
}
$this->partialStub('Unfinished method.');
// Change state to 'booting'
- CrawlerStateFactory::createCrawlerStateInstanceByName('booting', $this->getCrawlerInstance());
+ CrawlerStateFactory::createCrawlerStateInstanceByName('booting');
}
}