Skip to content

Internals Vfs Cache CacheEntry

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

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.

Imports and dependencies

use vfs\transient\interfaces\ITransientStorageEntry;

CacheEntry

Declaration and architectural role

class CacheEntry

Constants, enum cases, traits and properties

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 index

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

__construct

Source line 13

public function __construct(string $name, array $content, ITransientStorageEntry $entry)

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.
$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;
    }

getName

Source line 20

public function getName(): string

Return expressions (including local callbacks): $this->name.

Implementation, validation guards and interaction order
public function getName(): string
    {
        return $this->name;
    }

getContent

Source line 25

public function getContent(): array

Return expressions (including local callbacks): $this->content.

Implementation, validation guards and interaction order
public function getContent(): array
    {
        return $this->content;
    }

getStorageEntry

Source line 30

public function getStorageEntry(): ITransientStorageEntry

Return expressions (including local callbacks): $this->entry.

Implementation, validation guards and interaction order
public function getStorageEntry(): ITransientStorageEntry
    {
        return $this->entry;
    }

getLastModified

Source line 35

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();
    }

Related types

Clone this wiki locally