HEX
Server: LiteSpeed
System: Linux premium263.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: eastcjee (525)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/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 );
    }
}