| Total Complexity | 6 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| 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 | public function __construct(?string $processFilename = null) |
||
| 34 | { |
||
| 35 | $this->processFilename = $processFilename ?: Environment::getVarPath() . '/lock/tx_crawler.proc'; |
||
| 36 | $this->setDisabled(false); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function setDisabled(bool $disabled = true): void |
||
| 46 | } |
||
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 50 | public function isDisabled(): bool |
||
| 55 |