Skip to content

Commit

Permalink
Update CollectionCrawlQueue.php (#216)
Browse files Browse the repository at this point in the history
* Update CollectionCrawlQueue.php

Added some getters for the protected $variabels.

* PSR-Fix
  • Loading branch information
petericebear authored and freekmurze committed Apr 5, 2019
1 parent 847f6a7 commit e930d8e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/CrawlQueue/CollectionCrawlQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ public function __construct()
$this->pendingUrls = collect();
}

public function getUrls()
{
return $this->urls;
}

public function getPendingUrls()
{
return $this->pendingUrls;
}

public function add(CrawlUrl $url): CrawlQueue
{
if ($this->has($url)) {
Expand Down

0 comments on commit e930d8e

Please sign in to comment.