* @link https://www.fireplugins.com * @copyright Copyright © 2021 FirePlugins All Rights Reserved * @license GNU GPLv3 or later */ namespace FireBox\Core; if (!defined('ABSPATH')) { exit; // Exit if accessed directly. } class Models { public function __get($model = '') { $model_class = '\FireBox\Core\Models\\' . ucfirst(strtolower($model)); if (!class_exists($model_class)) { return false; } return new $model_class(); } }