PluginProbe
Redirection / 5.6.0
Redirection v5.6.0
5.10.0 5.9.0 5.8.1 5.8.0 3.7.2 3.7.3 4.0 4.0.1 4.1 4.1.1 4.2 4.2.1 4.2.2 4.2.3 4.3 4.3.1 4.3.2 4.3.3 4.4 4.4.1 4.4.2 4.5 4.5.1 4.6.2 4.7.1 All 130 releases
redirection / database / database-upgrade.php

database-upgrade.php in Redirection 5.6.0, at database/database-upgrade.php

45 lines 732 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class Red_Database_Upgrade {
4 /**
5 * @var string
6 */
7 private $version;
8
9 /**
10 * @var string
11 */
12 private $file;
13
14 /**
15 * @var class-string<Red_Database_Upgrader>
16 */
17 private $class;
18
19 /**
20 * @param string $version
21 * @param string $file
22 * @param class-string<Red_Database_Upgrader> $class
23 */
24 public function __construct( string $version, string $file, string $class ) {
25 $this->version = $version;
26 $this->file = $file;
27 $this->class = $class;
28 }
29
30 public function get_version(): string {
31 return $this->version;
32 }
33
34 public function get_file(): string {
35 return $this->file;
36 }
37
38 /**
39 * @return class-string<Red_Database_Upgrader>
40 */
41 public function get_class(): string {
42 return $this->class;
43 }
44 }
45