Files
roi-theme/wp-content/plugins/thrive-ultimatum/thrive-dashboard/inc/ttw-account/traits/trait-magic-methods.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

59 lines
767 B
PHP
Executable File

<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
/**
* Trait TD_Magic_Methods
*/
trait TD_Magic_Methods {
protected $_data = array();
/**
* @param $name
*
* @return bool
*/
public function __isset( $name ) {
return isset( $this->_data[ $name ] );
}
/**
* @param $key
* @param $value
*
* @return mixed
*/
public function __set( $key, $value ) {
$this->_data[ $key ] = $value;
return $this->_data[ $key ];
}
/**
* @param $param
*
* @return mixed|null
*/
public function __get( $param ) {
$value = null;
if ( isset( $this->_data[ $param ] ) ) {
$value = $this->_data[ $param ];
}
return $value;
}
}