mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 00:40:52 +00:00
27 lines
408 B
PHP
27 lines
408 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Rector\NodeTraverser;
|
|
|
|
final class TokenSwitcher
|
|
{
|
|
/**
|
|
* @var bool
|
|
*/
|
|
private $isEnabled = false;
|
|
|
|
public function enable(): void
|
|
{
|
|
$this->isEnabled = true;
|
|
}
|
|
|
|
public function disable(): void
|
|
{
|
|
$this->isEnabled = false;
|
|
}
|
|
|
|
public function isEnabled(): bool
|
|
{
|
|
return $this->isEnabled;
|
|
}
|
|
}
|