mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
30 lines
488 B
PHP
30 lines
488 B
PHP
<?php
|
|
|
|
namespace Erusev\Parsedown\Configurables;
|
|
|
|
use Erusev\Parsedown\Configurable;
|
|
|
|
final class SafeMode implements Configurable
|
|
{
|
|
/** @var bool */
|
|
private $enabled = false;
|
|
|
|
/**
|
|
* @param bool $enabled
|
|
*/
|
|
public function __construct($enabled)
|
|
{
|
|
$this->enabled = $enabled;
|
|
}
|
|
|
|
public function enabled(): bool
|
|
{
|
|
return $this->enabled;
|
|
}
|
|
|
|
public static function initial(): self
|
|
{
|
|
return new self(false);
|
|
}
|
|
}
|