| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | public function __construct(string $id, bool $fromCache = false, ?string $dataDirectory = null) |
||
| 16 | 3 | { |
|
| 17 | 3 | $this->fromCache = $fromCache; |
|
| 18 | |||
| 19 | 3 | $this->config = CrawlerConfig::loadFrom($id, $dataDirectory); |
|
| 20 | |||
| 21 | 3 | $this->recorder = new Recorder($this->config->getDataFolder(), $this->config->getCacheMethod()); |
|
| 22 | 3 | ||
| 23 | 3 | $this->resetLinks(); |
|
| 24 | |||
| 25 | 3 | $this->urls[$this->config->getStartUrl()] = null; |
|
| 26 | } |
||
| 52 |