/** * Start-function with recursion * Creates new instances depending on recursion depth * Prints all obtained emails * @return mails */ public function start() { $this->content = $this->getContent(); $this->urls = $this->getURLArray(); $mails = $this->getEmailArray(); $this->printResult($mails); if ($this->rlevel < $this->rmax) { foreach ($this->urls as $url) { $temp = new Crawl($url, $this->rlevel + 1, $this->rmax); $temp->start(); } } }