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 / AbstractUpgradeStep.php

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

20 lines 540 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;
6
7 use Yatra\Upgrades\Contracts\UpgradeStepInterface;
8
9 /**
10 * Default {@see UpgradeStepInterface::shouldApply()}: run only when crossing this target from below.
11 */
12 abstract class AbstractUpgradeStep implements UpgradeStepInterface
13 {
14 public static function shouldApply(string $fromVersion, string $toVersion): bool
15 {
16 return version_compare($fromVersion, static::targetVersion(), '<')
17 && version_compare($toVersion, static::targetVersion(), '>=');
18 }
19 }
20