Repository navigation
Internals Package Model InstalledPackage
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/package/model/InstalledPackage.php · Snapshot 8411f4287706.
Package metadata is persisted in awt_package. Manifest readers validate input and package services build installed models; startup executes enabled nonzero-type packages.
use package\model\Package;class InstalledPackage extends PackageDeclarations below preserve visibility, type, default and modifiers exactly. A typed property without an initializer remains uninitialized until its constructor or another method assigns it. Mutable fields belong to this instance unless marked static; readonly fields can be initialized once. Constructor-promoted properties are also listed below.
| Member | Declaration | Purpose or source contract |
|---|---|---|
| $id | public int $id; |
Used by getInfo(), getId(), setId(). |
| $status | public bool $status = false; |
Used by getInfo(), getStatus(), setStatus(). |
| Method | Signature |
|---|---|
| getInfo | public function getInfo(): array |
| getId | public function getId(): int |
| getStatus | public function getStatus(): bool |
| setId | public function setId(int $id): void |
| setStatus | public function setStatus(bool $status): void |
public function getInfo(): arrayReturn expressions (including local callbacks): array_merge(parent::getInfo(), [ 'id' => $this->id, 'status' => $this->status ? 'Active' : 'Disabled', ]).
Implementation, validation guards and interaction order
public function getInfo(): array
{
return array_merge(parent::getInfo(), [
'id' => $this->id,
'status' => $this->status ? 'Active' : 'Disabled',
]);
}public function getId(): intReturn expressions (including local callbacks): $this->id.
Implementation, validation guards and interaction order
public function getId(): int
{
return $this->id;
}public function getStatus(): boolReturn expressions (including local callbacks): $this->status.
Implementation, validation guards and interaction order
public function getStatus(): bool
{
return $this->status;
}public function setId(int $id): void| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$id |
int $id |
Record or runtime identifier selected by this operation. |
State writes: $this->id.
Implementation, validation guards and interaction order
public function setId(int $id): void
{
$this->id = $id;
}public function setStatus(bool $status): void| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$status |
bool $status |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
State writes: $this->status.
Implementation, validation guards and interaction order
public function setStatus(bool $status): void
{
$this->status = $status;
}AWT Framework Wiki · Home · Installation Guide · Developer Guide · Framework Internals
Philosophy · Architecture · Known discrepancies · Verification
Installation Guide
Developer Guide
- Learning sequence
- First package
- Package structure
- Lifecycle
- Runtimes
- Events and objects
- Routing and controllers
- Views and resources
- Database and models
- Storage and caching
- Configuration and CLI
- Responses and errors
- Extension points
Framework Internals
- Architecture
- Bootstrap
- Packages
- Runtime
- Events and context
- Objects
- HTTP routing and controllers
- Rendering
- Blade integration
- Database
- Models
- Storage and caching
- Settings
- CLI
- Identity and sessions
- Responses
- Errors
- Complete source inventory
Documentation notes