Skip to content

Commit bf54c2e

Browse files
committed
readonly
1 parent 8fdb3c0 commit bf54c2e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/RoadRunnerStore.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Spiral\RoadRunner\Symfony\Lock;
66

7-
use RoadRunner\Lock\LockInterface as RrLockInterface;
7+
use RoadRunner\Lock as RR;
88
use Spiral\Goridge\RPC\Exception\RPCException;
99
use Symfony\Component\Lock\Exception\LockAcquiringException;
1010
use Symfony\Component\Lock\Exception\LockConflictedException;
@@ -14,10 +14,15 @@
1414

1515
final class RoadRunnerStore implements SharedLockStoreInterface
1616
{
17+
/**
18+
* @param RR\LockInterface $rrLock
19+
* @param float $initialTtl The time-to-live of the lock, in seconds. Defaults to 0 (forever).
20+
* @param float $initialWaitTtl How long to wait to acquire lock until returning false.
21+
*/
1722
public function __construct(
18-
private readonly RrLockInterface $rrLock,
19-
private float $initialTtl = 300.0,
20-
private float $initialWaitTtl = 0,
23+
private readonly RR\LockInterface $rrLock,
24+
private readonly float $initialTtl = 300.0,
25+
private readonly float $initialWaitTtl = 0,
2126
) {
2227
}
2328

0 commit comments

Comments
 (0)