final class Lock (View source)

Provides a value object representing the lock from a TempStore.

Methods

__construct(int $owner_id, int $updated)

Constructs a new Lock object.

int
getOwnerId()

Gets the owner ID.

int
getUpdated()

Gets the timestamp of the last update to the lock.

Details

__construct(int $owner_id, int $updated)

Constructs a new Lock object.

Parameters

int $owner_id

The owner ID.

int $updated

The updated timestamp.

int getOwnerId()

Gets the owner ID.

Return Value

int

The owner ID.

int getUpdated()

Gets the timestamp of the last update to the lock.

Return Value

int

The updated timestamp.