Passed
Push — master ( b2f1dc...ac4dad )
by Dev
13:52
created

CrawlerRestart   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 12
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A loadFromPreviousCrawl() 0 3 1
1
<?php
2
3
namespace PiedWeb\SeoPocketCrawler;
4
5
class CrawlerRestart extends CrawlerContinue
6
{
7
    public function __construct(string $id, bool $fromCache = false)
8
    {
9
        $this->fromCache = $fromCache;
10
11
        parent::__construct($id);
12
    }
13
14
    protected function loadFromPreviousCrawl(string $startUrl)
15
    {
16
        $this->urls[$startUrl] = null;
17
    }
18
}
19