public function __construct(&$params) { $params->size = 0; $params->message = ''; $params->error = false; $this->params = $params; require_once __DIR__ . '/helpers/helpers.php'; $this->helpers = plgSystemCacheCleanerHelpers::getInstance($params); }
public static function getInstance($params = 0) { if (!self::$instance) { self::$instance = new static(); } if ($params) { self::$params = $params; } return self::$instance; }
public function __construct() { require_once __DIR__ . '/helpers.php'; $this->helpers = plgSystemCacheCleanerHelpers::getInstance(); $this->params = $this->helpers->getParams(); }