class SessionMetaData (View source)

Methods

__construct(SessionIdentifier $sessionIdentifier, StorageIdentifier $storageIdentifier, int $lastActivityTimestamp, array $tags)

No description

static SessionMetaData
createWithTimestamp(int $timestamp)

No description

static SessionMetaData
createFromSessionIdentifierStringAndOldArrayCacheFormat(string $sessionIdentifier, array $data) deprecated

Create session metadata from classic cache format for backwards compatibility

withLastActivityTimestamp(int $lastActivityTimestamp)

No description

withAddedTag(string $tag)

No description

withRemovedTag(string $tag)

No description

bool
isSame(SessionMetaData $other)

Determine whether the metadata is equal in all aspects other than lastActivityTimestamp

int|null
ageDifference(SessionMetaData $other)

Determine the age difference between the metadata items

Details

__construct(SessionIdentifier $sessionIdentifier, StorageIdentifier $storageIdentifier, int $lastActivityTimestamp, array $tags)

No description

Parameters

SessionIdentifier $sessionIdentifier
StorageIdentifier $storageIdentifier
int $lastActivityTimestamp
array $tags

static SessionMetaData createWithTimestamp(int $timestamp)

No description

Parameters

int $timestamp

Return Value

SessionMetaData

Exceptions

Exception

static SessionMetaData createFromSessionIdentifierStringAndOldArrayCacheFormat(string $sessionIdentifier, array $data) deprecated

deprecated this will be removed with Flow 10

Create session metadata from classic cache format for backwards compatibility

Parameters

string $sessionIdentifier
array $data

Return Value

SessionMetaData

SessionMetaData withLastActivityTimestamp(int $lastActivityTimestamp)

No description

Parameters

int $lastActivityTimestamp

Return Value

SessionMetaData

SessionMetaData withNewSessionIdentifier()

No description

Return Value

SessionMetaData

SessionMetaData withAddedTag(string $tag)

No description

Parameters

string $tag

Return Value

SessionMetaData

SessionMetaData withRemovedTag(string $tag)

No description

Parameters

string $tag

Return Value

SessionMetaData

bool isSame(SessionMetaData $other)

Determine whether the metadata is equal in all aspects other than lastActivityTimestamp

Parameters

SessionMetaData $other

Return Value

bool

int|null ageDifference(SessionMetaData $other)

Determine the age difference between the metadata items

Parameters

SessionMetaData $other

Return Value

int|null