PluginProbe
JetBackup – Backup, Restore & Migrate / 3.1.21.3
JetBackup – Backup, Restore & Migrate v3.1.21.3
3.1.23.6 3.1.23.5 3.1.23.3 3.1.22.4 3.1.22.3 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.8.1 1.4.9 1.5.0 1.5.1 1.5.1.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 1.6.10 All 82 releases
backup / src / JetBackup / Exception / UserInputException.php
UserInputException.php
37 lines 822 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 *
4 * JetBackup @ package
5 * Created By Idan Ben-Ezra
6 *
7 * Copyrights @ JetApps
8 * https://www.jetapps.com
9 *
10 **/
11 namespace JetBackup\Exception;
12
13 use Throwable;
14
15 if (!defined( '__JETBACKUP__')) die('Direct access is not allowed');
16
17 class UserInputException extends JBException {
18 private array $_types;
19 private array $_data;
20
21 /**
22 * @param string $message
23 * @param array $data
24 * @param array $types
25 * @param int $code
26 * @param throwable|null $previous
27 */
28 public function __construct(string $message="", array $data=[], array $types=[], int $code = 0, ?throwable $previous=null) {
29 $this->_types = $types;
30 $this->_data = $data;
31 parent::__construct($message, $code, $previous);
32 }
33
34 public function getTypes():array { return $this->_types; }
35 public function getData():array { return $this->_data; }
36 }
37