Skip to content

Internals Installer Interfaces Package IVersionCompare

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

installer\interfaces\package\IVersionCompare

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/installer/interfaces/package/IVersionCompare.php · Snapshot 8411f4287706.

Installation validates archives and manifests, moves files, persists metadata, copies data into storage, invokes an optional hook and emits an event. These operations do not form one atomic transaction.

IVersionCompare

Declaration and architectural role

interface IVersionCompare

Constants, enum cases, traits and properties

No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.

Method index

Method Signature
compare public function compare(string $old, string $new): int
compareCompatibility public function compareCompatibility(string $min, ?string $max = null): bool

compare

Source line 13

public function compare(string $old, string $new): int;

Parameters

Parameter Type, modifiers and default Purpose
$old string $old * @param string $new
$new string $new Operation input; the exact use, validation and propagation are shown in the implementation trace.

Compares two versions. @param string $old @param string $new @return int

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

compareCompatibility

Source line 21

public function compareCompatibility(string $min, ?string $max = null): bool;

Parameters

Parameter Type, modifiers and default Purpose
$min string $min * @param string|null $max
$max ?string $max = null Operation input; the exact use, validation and propagation are shown in the implementation trace.

Checks if the current version is compatible with the given version range. @param string $min @param string|null $max @return bool

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

Clone this wiki locally