| Total Complexity | 6 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | final class Crawler implements SingletonInterface |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $processFilename; |
||
| 32 | |||
| 33 | 37 | public function __construct(?string $processFilename = null) |
|
| 34 | { |
||
| 35 | 37 | $this->processFilename = $processFilename ?: Environment::getVarPath() . '/lock/tx_crawler.proc'; |
|
| 36 | 37 | $this->setDisabled(false); |
|
| 37 | 37 | } |
|
| 38 | |||
| 39 | 37 | public function setDisabled(bool $disabled = true): void |
|
| 46 | } |
||
| 47 | } |
||
| 48 | 37 | } |
|
| 49 | |||
| 50 | 1 | public function isDisabled(): bool |
|
| 55 |