class Lock
Same name in this branch
- 11.1.x vendor/symfony/lock/Lock.php \Symfony\Component\Lock\Lock
Provides a value object representing the lock from a TempStore.
Hierarchy
- class \Drupal\Core\TempStore\Lock
Expanded class hierarchy of Lock
1 file declares its use of Lock
- ViewUI.php in core/
modules/ views_ui/ src/ ViewUI.php
18 string references to 'Lock'
- BumpCommand::doBump in vendor/
composer/ composer/ src/ Composer/ Command/ BumpCommand.php - CheckPlatformReqsCommand::execute in vendor/
composer/ composer/ src/ Composer/ Command/ CheckPlatformReqsCommand.php - Executes the current command.
- CKEditor5ImageController::create in core/
modules/ ckeditor5/ src/ Controller/ CKEditor5ImageController.php - Instantiates a new instance of the implementing class using autowiring.
- Config::get in vendor/
composer/ composer/ src/ Composer/ Config.php - Returns a setting
- Factory::createComposer in vendor/
composer/ composer/ src/ Composer/ Factory.php - Creates a Composer instance
File
-
core/
lib/ Drupal/ Core/ TempStore/ Lock.php, line 8
Namespace
Drupal\Core\TempStoreView source
final class Lock {
/**
* The owner ID.
*
* @var int
*/
private $ownerId;
/**
* The timestamp the lock was last updated.
*
* @var int
*/
private $updated;
/**
* Constructs a new Lock object.
*
* @param int $owner_id
* The owner ID.
* @param int $updated
* The updated timestamp.
*/
public function __construct($owner_id, $updated) {
$this->ownerId = $owner_id;
$this->updated = $updated;
}
/**
* Gets the owner ID.
*
* @return int
* The owner ID.
*/
public function getOwnerId() {
return $this->ownerId;
}
/**
* Gets the timestamp of the last update to the lock.
*
* @return int
* The updated timestamp.
*/
public function getUpdated() {
return $this->updated;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Lock::$ownerId | private | property | The owner ID. |
Lock::$updated | private | property | The timestamp the lock was last updated. |
Lock::getOwnerId | public | function | Gets the owner ID. |
Lock::getUpdated | public | function | Gets the timestamp of the last update to the lock. |
Lock::__construct | public | function | Constructs a new Lock object. |