| 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 |
|