File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 2020 */
2121class Crawler implements \Countable, \IteratorAggregate
2222{
23- /**
24- * @var string The current URI
25- */
2623 protected $ uri ;
2724
2825 /**
@@ -58,14 +55,14 @@ class Crawler implements \Countable, \IteratorAggregate
5855 private $ isHtml = true ;
5956
6057 /**
61- * @param mixed $node A Node to use as the base for the crawling
62- * @param string $currentUri The current URI
63- * @param string $baseHref The base href value
58+ * @param mixed $node A Node to use as the base for the crawling
59+ * @param string $uri The current URI
60+ * @param string $baseHref The base href value
6461 */
65- public function __construct ($ node = null , $ currentUri = null , $ baseHref = null )
62+ public function __construct ($ node = null , $ uri = null , $ baseHref = null )
6663 {
67- $ this ->uri = $ currentUri ;
68- $ this ->baseHref = $ baseHref ?: $ currentUri ;
64+ $ this ->uri = $ uri ;
65+ $ this ->baseHref = $ baseHref ?: $ uri ;
6966
7067 $ this ->add ($ node );
7168 }
You can’t perform that action at this time.
0 commit comments