File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
src/Symfony/Component/Lock Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -133,17 +133,15 @@ public function release()
133
133
}
134
134
135
135
/**
136
- * @return bool
136
+ * {@inheritdoc}
137
137
*/
138
138
public function isExpired ()
139
139
{
140
140
return $ this ->key ->isExpired ();
141
141
}
142
142
143
143
/**
144
- * Returns the remaining lifetime.
145
- *
146
- * @return float|null Remaining lifetime in seconds. Null when the lock won't expire.
144
+ * {@inheritdoc}
147
145
*/
148
146
public function getRemainingLifetime ()
149
147
{
Original file line number Diff line number Diff line change @@ -56,4 +56,16 @@ public function isAcquired();
56
56
* @throws LockReleasingException If the lock can not be released
57
57
*/
58
58
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 ();
59
71
}
You can’t perform that action at this time.
0 commit comments