HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/mobilech/www/wp-content/plugins/backup/src/JetBackup/Exception/UserInputException.php
<?php
/*
*
* JetBackup @ package
* Created By Idan Ben-Ezra
*
* Copyrights @ JetApps
* https://www.jetapps.com
*
**/
namespace JetBackup\Exception;

use Throwable;

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

class UserInputException extends JBException {
	private array $_types;
	private array $_data;

	/**
	 * @param string $message
	 * @param array $data
	 * @param array $types
	 * @param int $code
	 * @param throwable|null $previous
	 */
	public function __construct(string $message="", array $data=[], array $types=[], int $code = 0, ?throwable $previous=null) {
		$this->_types = $types;
		$this->_data = $data;
		parent::__construct($message, $code, $previous);
	}

	public function getTypes():array { return $this->_types; }
	public function getData():array { return $this->_data; }
}