PluginProbe
Yatra – Travel Booking & Tour Operator Software / trunk
Yatra – Travel Booking & Tour Operator Software vtrunk
3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 2.0.10 2.0.11 All 82 releases
yatra / app / Upgrades / Contracts / UpgradeStepInterface.php

UpgradeStepInterface.php in Yatra – Travel Booking & Tour Operator Software trunk, at app/Upgrades/Contracts/UpgradeStepInterface.php

26 lines 671 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Yatra\Upgrades\Contracts;
6
7 /**
8 * One-time delta migration for a specific plugin release (not run on fresh installs at that version).
9 */
10 interface UpgradeStepInterface
11 {
12 /**
13 * Semver this step belongs to (e.g. "3.0.1"). The step runs when upgrading from below this to at or above it.
14 */
15 public static function targetVersion(): string;
16
17 public static function shouldApply(string $fromVersion, string $toVersion): bool;
18
19 public static function run(string $fromVersion, string $toVersion): void;
20
21 /**
22 * @return list<'init'|'admin_init'>
23 */
24 public static function runOnHooks(): array;
25 }
26