<?php

defined('ABSPATH') || exit;

class BundlePress_Settings_API
{
    private $namespace;
    private static $settings_cache = null;

    public function __construct($namespace = 'bundlepress/v1')
    {
        $this->namespace = $namespace;
    }

    public function register_routes()
    {
    }

    public function check_permission()
    {
        return current_user_can('manage_options');
    }

    public static function get_feature_settings()
    {
        return [
            'usage_tracking'    => true,
            'product_bundles'   => true,
            'card_style'        => 'card',
            'product_alignment' => 'horizontal',
        ];
    }

    public static function is_feature_enabled($feature_key)
    {
        $settings = self::get_feature_settings();
        return isset($settings[$feature_key]) && $settings[$feature_key] === true;
    }
}