Skip to content

Internals Installer Interfaces Package IExtractor

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

installer\interfaces\package\IExtractor

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/installer/interfaces/package/IExtractor.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.

Imports and dependencies

use RuntimeException;
use vfs\transient\interfaces\ITransientStorageEntry;
use ZipArchive;

IExtractor

Declaration and architectural role

interface IExtractor

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
extract public function extract(): void
getZip public function getZip(): ZipArchive
getTarget public function getTarget(): ITransientStorageEntry
getDestination public function getDestination(): string
setTarget public function setTarget(ITransientStorageEntry $target): void
setDestination public function setDestination(string $destination): void
zipVerify public function zipVerify(): void

extract

Source line 12

public function extract(): void;

Extracts the zip file to the destination. @return void

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

getZip

Source line 18

public function getZip(): ZipArchive;

Returns the zip archive. @return ZipArchive

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

getTarget

Source line 24

public function getTarget(): ITransientStorageEntry;

Returns the target entry. @return ITransientStorageEntry

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

getDestination

Source line 30

public function getDestination(): string;

Returns the destination path. @return string

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

setTarget

Source line 37

public function setTarget(ITransientStorageEntry $target): void;

Parameters

Parameter Type, modifiers and default Purpose
$target ITransientStorageEntry $target * @return void

Sets the target entry. @param ITransientStorageEntry $target @return void

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

setDestination

Source line 45

public function setDestination(string $destination): void;

Parameters

Parameter Type, modifiers and default Purpose
$destination string $destination * @return void

Sets the destination path. @param string $destination @return void

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

zipVerify

Source line 53

public function zipVerify(): void;

Should throw an exception if the zip is invalid.

@throws RuntimeException @return void

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