HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/advanced-ads/includes/groups/class-group-standard.php
<?php
/**
 * This class is responsible to model standard groups.
 *
 * @package AdvancedAds
 * @author  Advanced Ads <info@wpadvancedads.com>
 * @since   1.48.0
 */

namespace AdvancedAds\Groups;

use AdvancedAds\Abstracts\Group;
use AdvancedAds\Interfaces\Group_Interface;

defined( 'ABSPATH' ) || exit;

/**
 * Standard group.
 */
class Group_Standard extends Group implements Group_Interface {

	/**
	 * Get interval.
	 *
	 * @param string $context What the value is for. Valid values are view and edit.
	 *
	 * @return int
	 */
	public function get_interval( $context = 'view' ): int {
		return $this->get_prop( 'interval', $context );
	}

	/**
	 * Is refresh enabled.
	 *
	 * @param string $context What the value is for. Valid values are view and edit.
	 *
	 * @return bool
	 */
	public function is_refresh( $context = 'view' ): bool {
		$value = $this->get_prop( 'enabled', $context );
		return $value ?? false;
	}
}