Skip to content

Internals Runtime Interface IRuntime

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

runtime\interface\IRuntime

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/runtime/interface/IRuntime.php · Snapshot 8411f4287706.

Runtime state, package API classes, loader, executor and orchestrator have separate responsibilities. Dependency validation precedes package code and nested execution restores context.

Imports and dependencies

use event\EventDispatcher;
use package\model\InstalledPackage;
use runtime\enums\ERuntimeStatus;

IRuntime

Declaration and architectural role

interface IRuntime

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
create public static function create(?InstalledPackage $package): IRuntime
getEventDispatcher public function getEventDispatcher(): EventDispatcher
setEventDispatcher public function setEventDispatcher(EventDispatcher $eventDispatcher): void
getRuntimeId public function getRuntimeId(): int
getRuntimeName public function getRuntimeName(): string
setRuntimeStatus public function setRuntimeStatus(ERuntimeStatus $status): void
getRuntimeStatus public function getRuntimeStatus(): ERuntimeStatus
getPackage public function getPackage(): InstalledPackage
getRootPath public function getRootPath(): string
setFlags public function setFlags (array $flags): void
getFlags public function getFlags(): array
setWaitFor public function setWaitFor(array $package): void
getWaitFor public function getWaitFor(): array
setPassable public function setPassable(array $passable): void
getPassable public function getPassable(string $name): array
setSharedRegistry public function setSharedRegistry(array $shared): void
getSharedRegistry public function getSharedRegistry(): array

create

Source line 24

public static function create(?InstalledPackage $package): IRuntime;

Parameters

Parameter Type, modifiers and default Purpose
$package ?InstalledPackage $package Package identifier or InstalledPackage metadata as indicated by the declared type.

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

getEventDispatcher

Source line 25

public function getEventDispatcher(): EventDispatcher;

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

setEventDispatcher

Source line 27

public function setEventDispatcher(EventDispatcher $eventDispatcher): void;

Parameters

Parameter Type, modifiers and default Purpose
$eventDispatcher EventDispatcher $eventDispatcher Dispatcher used for synchronous listener registration/dispatch and context propagation.

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

getRuntimeId

Source line 32

public function getRuntimeId(): int;

Returns the identifier of the runtime. @return int

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

getRuntimeName

Source line 34

public function getRuntimeName(): string;

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

setRuntimeStatus

Source line 36

public function setRuntimeStatus(ERuntimeStatus $status): void;

Parameters

Parameter Type, modifiers and default Purpose
$status ERuntimeStatus $status Operation input; the exact use, validation and propagation are shown in the implementation trace.

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

getRuntimeStatus

Source line 38

public function getRuntimeStatus(): ERuntimeStatus;

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

getPackage

Source line 40

public function getPackage(): InstalledPackage;

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

getRootPath

Source line 42

public function getRootPath(): string;

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

setFlags

Source line 44

public function setFlags (array $flags): void;

Parameters

Parameter Type, modifiers and default Purpose
$flags array $flags List of runtime flag cases; invalid non-enum entries fail normalization.

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

getFlags

Source line 46

public function getFlags(): array;

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

setWaitFor

Source line 48

public function setWaitFor(array $package): void;

Parameters

Parameter Type, modifiers and default Purpose
$package array $package Package identifier or InstalledPackage metadata as indicated by the declared type.

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

getWaitFor

Source line 50

public function getWaitFor(): array;

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

setPassable

Source line 52

public function setPassable(array $passable): void;

Parameters

Parameter Type, modifiers and default Purpose
$passable array $passable Operation input; the exact use, validation and propagation are shown in the implementation trace.

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

getPassable

Source line 53

public function getPassable(string $name): array;

Parameters

Parameter Type, modifiers and default Purpose
$name string $name Named key/label selected by this API; its exact scope is shown by the implementation trace.

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

setSharedRegistry

Source line 54

public function setSharedRegistry(array $shared): void;

Parameters

Parameter Type, modifiers and default Purpose
$shared array $shared Operation input; the exact use, validation and propagation are shown in the implementation trace.

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

getSharedRegistry

Source line 55

public function getSharedRegistry(): array;

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

Related types

Clone this wiki locally