profilers
2 years ago
versions
8 months ago
migration-exception.php
2 years ago
migration-model.php
2 years ago
migrator.php
2 years ago
view-migrations.php
2 years ago
migration-exception.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Migrations; |
| 5 | |
| 6 | // If this file is called directly, abort. |
| 7 | if ( ! defined( 'WPINC' ) ) { |
| 8 | die; |
| 9 | } |
| 10 | |
| 11 | class Migration_Exception extends \Exception { |
| 12 | |
| 13 | protected $version = ''; |
| 14 | |
| 15 | public function set_version( string $version ): Migration_Exception { |
| 16 | $this->version = $version; |
| 17 | |
| 18 | return $this; |
| 19 | } |
| 20 | |
| 21 | public function get_version(): string { |
| 22 | return $this->version; |
| 23 | } |
| 24 | |
| 25 | } |
| 26 |