File "SliderSettingInterface.php"

Full Path: /home/attunedd/public_html/wp-content/plugins/carousel-slider/includes/Interfaces/SliderSettingInterface.php
File size: 1.45 KB
MIME-type: text/x-php
Charset: utf-8

<?php

namespace CarouselSlider\Interfaces;

use ArrayAccess;
use JsonSerializable;

defined( 'ABSPATH' ) || exit;

/**
 * SliderSettingInterface class
 */
interface SliderSettingInterface extends ArrayAccess, JsonSerializable {
	/**
	 * Get slider Id
	 *
	 * @return int
	 */
	public function get_slider_id(): int;

	/**
	 * Get slider type
	 *
	 * @return string
	 */
	public function get_slider_type(): string;

	/**
	 * Get global option for key
	 *
	 * @param  string $key  option key.
	 * @param  mixed  $default_value  default value to return if data key does not exist.
	 *
	 * @return mixed The key's value, or the default value
	 */
	public function get_global_option( string $key, $default_value = '' );

	/**
	 * Get option for key
	 * If there is no option for key, return from global option.
	 *
	 * @param  string $key  option key.
	 * @param  mixed  $default_value  default value to return if data key does not exist.
	 *
	 * @return mixed The key's value, or the default value
	 */
	public function get_option( string $key, $default_value = '' );

	/**
	 * Read data from HTTP POST variable
	 *
	 * @param  array $values  The values from HTTP POST variables.
	 *
	 * @return void
	 */
	public function read_http_post_variables( array $values = array() );

	/**
	 * Read data from HTTP POST variable
	 *
	 * @param  array $values  The values from HTTP POST variables.
	 *
	 * @return void
	 */
	public function read_extra_http_post_variables( array $values = array() );
}