@@ -36,6 +36,7 @@ public function withTtl(float $ttl, float $waitTtl = 0): self
3636 return new self ($ this ->lock , $ this ->tokens , $ ttl , $ waitTtl );
3737 }
3838
39+ #[\Override]
3940 public function save (Key $ key ): void
4041 {
4142 \assert (false === $ key ->hasState (__CLASS__ ));
@@ -58,6 +59,7 @@ public function save(Key $key): void
5859 }
5960 }
6061
62+ #[\Override]
6163 public function saveRead (Key $ key ): void
6264 {
6365 \assert (false === $ key ->hasState (__CLASS__ ));
@@ -74,6 +76,7 @@ public function saveRead(Key $key): void
7476 $ key ->setState (__CLASS__ , $ lockId );
7577 }
7678
79+ #[\Override]
7780 public function exists (Key $ key ): bool
7881 {
7982 \assert ($ key ->hasState (__CLASS__ ));
@@ -86,6 +89,7 @@ public function exists(Key $key): bool
8689 return $ this ->lock ->exists ($ resource , $ lockId );
8790 }
8891
92+ #[\Override]
8993 public function putOffExpiration (Key $ key , float $ ttl ): void
9094 {
9195 \assert ($ key ->hasState (__CLASS__ ));
@@ -101,6 +105,7 @@ public function putOffExpiration(Key $key, float $ttl): void
101105 }
102106 }
103107
108+ #[\Override]
104109 public function delete (Key $ key ): void
105110 {
106111 \assert ($ key ->hasState (__CLASS__ ));
@@ -111,6 +116,7 @@ public function delete(Key $key): void
111116 $ this ->lock ->release ($ resource , $ lockId );
112117 }
113118
119+ #[\Override]
114120 public function waitAndSave (Key $ key ): void
115121 {
116122 $ lockId = $ this ->getUniqueToken ($ key );
0 commit comments