<?php

declare (strict_types=1);
namespace PoPCMSSchema\Meta;

use PoP\Root\Module\AbstractModuleConfiguration;
use PoP\Root\Module\EnvironmentValueHelpers;
/** @internal */
class ModuleConfiguration extends AbstractModuleConfiguration
{
    public function treatEntityMetaKeysAsSensitiveData() : bool
    {
        $envVariable = \PoPCMSSchema\Meta\Environment::TREAT_ENTITY_META_KEYS_AS_SENSITIVE_DATA;
        $defaultValue = \true;
        $callback = EnvironmentValueHelpers::toBool(...);
        return $this->retrieveConfigurationValueOrUseDefault($envVariable, $defaultValue, $callback);
    }
}
