HEX
Server: LiteSpeed
System: Linux altar40.supremepanel40.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: sescorpcl (4477)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /home/sescorpcl/public_html/wp-content/plugins/ninja-forms/includes/Telemetry/MetricRepository.php
<?php

class NF_Telemetry_MetricRepository implements NF_Telemetry_RepositoryInterface
{
    protected $option;

    public function __construct( $option, $default = false, $autoload = true )
    {
        $this->option = $option;
        $this->default = $default;
        $this->autoload = $autoload;
    }

    public function get()
    {
        return absint( get_option( $this->option, $this->default ) );
    }

    public function save( $new_value )
    {
        return update_option( $this->option, $new_value, $this->autoload );
    }
}