| Current Path : /home/jeromecohp/www/tmp/yooessentials/modules/core/src/ |
| Current File : /home/jeromecohp/www/tmp/yooessentials/modules/core/src/HasLocalConfig.php |
<?php
/**
* @package Essentials YOOtheme Pro (Freemium) 1.6.8
* @author ZOOlanders https://www.zoolanders.com
* @copyright Copyright (C) Joolanders, SL
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
namespace ZOOlanders\YOOessentials;
trait HasLocalConfig
{
/** @var array */
protected $config = [];
public function config(?string $key = null, $default = null)
{
if ($key === null) {
return $this->config;
}
return $this->config[$key] ?? $default;
}
}