From f81211422a3ba96a428bdfda062e6f22b1ed043c Mon Sep 17 00:00:00 2001 From: Youssef Benhssaien Date: Thu, 3 Dec 2020 07:25:17 +0100 Subject: [PATCH] Lock - replace getExpiringDate by getRemainingLifetime As the method `getExpiringDate` doesn't exist, replace it by `getRemainingLifetime` which returns the remaining time to live in seconds --- components/lock.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lock.rst b/components/lock.rst index 891fdc64818..55ddcf377b3 100644 --- a/components/lock.rst +++ b/components/lock.rst @@ -196,8 +196,8 @@ to reset the TTL to its original value:: $lock->refresh(600); This component also provides two useful methods related to expiring locks: -``getExpiringDate()`` (which returns ``null`` or a ``\DateTimeImmutable`` -object) and ``isExpired()`` (which returns a boolean). +``getRemainingLifetime()`` (which returns ``null`` or a ``float`` +as seconds) and ``isExpired()`` (which returns a boolean). The Owner of The Lock ---------------------