Last active
December 22, 2015 11:07
-
-
Save nivv/f59d5f5834208f0cfc10 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class thingy { | |
/** | |
* Initiate the crawl | |
* @param string $url | |
*/ | |
public function traverse($url = null) | |
{ | |
if ($url === null) { | |
$url = $this->baseUrl; | |
} | |
$this->traverseSingle($url, $this->maxDepth); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment