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

CrawlerRestart::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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