Skip to content

Commit e66e538

Browse files
committed
Add missing methods in LockInterface
1 parent 55a7691 commit e66e538

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/Symfony/Component/Lock/Lock.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,15 @@ public function release()
133133
}
134134

135135
/**
136-
* @return bool
136+
* {@inheritdoc}
137137
*/
138138
public function isExpired()
139139
{
140140
return $this->key->isExpired();
141141
}
142142

143143
/**
144-
* Returns the remaining lifetime.
145-
*
146-
* @return float|null Remaining lifetime in seconds. Null when the lock won't expire.
144+
* {@inheritdoc}
147145
*/
148146
public function getRemainingLifetime()
149147
{

src/Symfony/Component/Lock/LockInterface.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,16 @@ public function isAcquired();
5656
* @throws LockReleasingException If the lock can not be released
5757
*/
5858
public function release();
59+
60+
/**
61+
* @return bool
62+
*/
63+
public function isExpired();
64+
65+
/**
66+
* Returns the remaining lifetime.
67+
*
68+
* @return float|null Remaining lifetime in seconds. Null when the lock won't expire.
69+
*/
70+
public function getRemainingLifetime();
5971
}

0 commit comments

Comments
 (0)