Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2.0185 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 | } |
|
22 |