Skip to content

Instantly share code, notes, and snippets.

@nivv
Last active December 22, 2015 11:07
Show Gist options
  • Save nivv/f59d5f5834208f0cfc10 to your computer and use it in GitHub Desktop.
Save nivv/f59d5f5834208f0cfc10 to your computer and use it in GitHub Desktop.
<?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