Repository navigation
Internals Vfs Cache CacheEntry
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/vfs/cache/CacheEntry.php · Snapshot 8411f4287706.
VFS includes package resource lookup, database-backed file metadata, filesystem collaborators, transient pools and persistent PHP-array caches.
use vfs\transient\interfaces\ITransientStorageEntry;
class CacheEntry
Declarations 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 |
|---|---|---|
| $name | private string $name; |
Used by __construct(), getName(). |
| $content | private array $content; |
Used by __construct(), getContent(). |
| $entry | private ITransientStorageEntry $entry; |
Used by __construct(), getStorageEntry(), getLastModified(). |
| Constructor-promoted | public function __construct(string $name |
Initialized from the constructor argument; default expression is evaluated when the argument is omitted. |
| Method | Signature |
|---|---|
| __construct | public function __construct(string $name, array $content, ITransientStorageEntry $entry) |
| getName | public function getName(): string |
| getContent | public function getContent(): array |
| getStorageEntry | public function getStorageEntry(): ITransientStorageEntry |
| getLastModified | public function getLastModified(): int |
public function __construct(string $name, array $content, ITransientStorageEntry $entry)
| 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. |
$content |
array $content |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
$entry |
ITransientStorageEntry $entry |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
State writes: $this->name, $this->content, $this->entry.
Implementation, validation guards and interaction order
public function __construct(string $name, array $content, ITransientStorageEntry $entry)
{
$this->name = $name;
$this->content = $content;
$this->entry = $entry;
}
public function getName(): string
Return expressions (including local callbacks): $this->name.
Implementation, validation guards and interaction order
public function getName(): string
{
return $this->name;
}
public function getContent(): array
Return expressions (including local callbacks): $this->content.
Implementation, validation guards and interaction order
public function getContent(): array
{
return $this->content;
}
public function getStorageEntry(): ITransientStorageEntry
Return expressions (including local callbacks): $this->entry.
Implementation, validation guards and interaction order
public function getStorageEntry(): ITransientStorageEntry
{
return $this->entry;
}
public function getLastModified(): int
Return expressions (including local callbacks): $this->entry->getLastModified().
Implementation, validation guards and interaction order
public function getLastModified(): int
{
return $this->entry->getLastModified();
}
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