# yatra/3.0.14.2/app/Upgrades/Contracts/UpgradeStepInterface.php

Yatra – Travel Booking &amp; Tour Operator Software, version 3.0.14.2. 26 lines.

- Page: https://pluginprobe.com/plugins/yatra/3.0.14.2/code/app/Upgrades/Contracts/UpgradeStepInterface.php
- Raw: https://pluginprobe.com/plugins/yatra/3.0.14.2/raw/app/Upgrades/Contracts/UpgradeStepInterface.php
- Modified: 2026-05-04T10:23:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yatra/3.0.14.2/code/app/Upgrades/Contracts/UpgradeStepInterface.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Yatra\Upgrades\Contracts;

/**
 * One-time delta migration for a specific plugin release (not run on fresh installs at that version).
 */
interface UpgradeStepInterface
{
    /**
     * Semver this step belongs to (e.g. "3.0.1"). The step runs when upgrading from below this to at or above it.
     */
    public static function targetVersion(): string;

    public static function shouldApply(string $fromVersion, string $toVersion): bool;

    public static function run(string $fromVersion, string $toVersion): void;

    /**
     * @return list<'init'|'admin_init'>
     */
    public static function runOnHooks(): array;
}

```
