public function __construct($baseUrl, $maxDepth = 3) { $this->baseUrl = $baseUrl; $this->maxDepth = $maxDepth; $this->links = array(); }