HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/dmstechonline/ebrucolor.com/wp-content/plugins/backup/src/JetBackup/Data/Engine.php
<?php

namespace JetBackup\Data;

if (!defined( '__JETBACKUP__')) die('Direct access is not allowed');

class Engine extends DBObject {

	const ENGINE = 'engine';

	const ENGINE_WP = 1;
	const ENGINE_JB = 2;
	const ENGINE_SGB = 3;

	const ENGINE_NAMES = [
		self::ENGINE_WP     => 'Wordpress',
		self::ENGINE_JB     => 'JetBackup',
		self::ENGINE_SGB     => 'SGB',
	];

	public function setEngine(int $value):void { $this->set(self::ENGINE, $value); }
	public function getEngine():int { return (int) $this->get(self::ENGINE, self::ENGINE_WP); }

	public function getEngineName():string { return self::ENGINE_NAMES[$this->getEngine()]; }
}