CrawlerContinue   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 83.33%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 14
ccs 5
cts 6
cp 0.8333
rs 10
c 1
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 2
1
<?php
2
3
namespace PiedWeb\SeoPocketCrawler;
4
5
class CrawlerContinue extends Crawler
6
{
7
    public function __construct(string $id, bool $debug = true, ?string $dataDirectory = null)
8
    {
9
        $this->config = CrawlerConfig::loadFrom($id, $dataDirectory);
10 3
11
        //$this->recorder = new Recorder($this->config->getDataFolder(), $this->config->getCacheMethod());
12 3
13 3
        $this->debug = $debug;
14
15 3
        $dataFromPreviousCrawl = $this->config->getDataFromPreviousCrawl();
16 3
17
        foreach ($dataFromPreviousCrawl as $k => $v) {
18
            $this->$k = $v;
19 3
        }
20
    }
21
}
22