Skip to content

Commit 3df7d17

Browse files
committed
Improve docblock
1 parent e216b64 commit 3df7d17

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/Locker/PostgresAdvisoryLockScopeEnum.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@
77
/**
88
* PostgresAdvisoryLockScopeEnum defines the scope of advisory lock acquisition.
99
*
10-
* - Session: Session-level advisory lock (PG_ADVISORY_LOCK, PG_TRY_ADVISORY_LOCK)
11-
* - Transaction: Transaction-level advisory lock (PG_ADVISORY_XACT_LOCK, PG_TRY_ADVISORY_XACT_LOCK)
10+
* - Session. Session-level advisory lock (without _XACT_):
11+
* - PG_ADVISORY_LOCK
12+
* - PG_ADVISORY_LOCK_SHARED
13+
* - PG_TRY_ADVISORY_LOCK
14+
* - PG_TRY_ADVISORY_LOCK_SHARED
15+
* - Transaction. Transaction-level advisory lock (with _XACT_):
16+
* - PG_ADVISORY_XACT_LOCK
17+
* - PG_ADVISORY_XACT_LOCK_SHARED
18+
* - PG_TRY_ADVISORY_XACT_LOCK
19+
* - PG_TRY_ADVISORY_XACT_LOCK_SHARED
1220
*/
1321
enum PostgresAdvisoryLockScopeEnum
1422
{

src/Locker/PostgresAdvisoryLockTypeEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
/**
88
* PostgresAdvisoryLockTypeEnum defines the type of advisory lock acquisition.
99
*
10-
* - NonBlocking. Attempt to acquire the lock without blocking:
10+
* - NonBlocking. Attempt to acquire the lock without blocking (with _TRY_):
1111
* - PG_TRY_ADVISORY_LOCK
1212
* - PG_TRY_ADVISORY_LOCK_SHARED
1313
* - PG_TRY_ADVISORY_XACT_LOCK
1414
* - PG_TRY_ADVISORY_XACT_LOCK_SHARED
15-
* - Blocking. Acquire the lock, blocking until it becomes available:
15+
* - Blocking. Acquire the lock, blocking until it becomes available (without _TRY_):
1616
* - PG_ADVISORY_LOCK
1717
* - PG_ADVISORY_LOCK_SHARED
1818
* - PG_ADVISORY_XACT_LOCK

0 commit comments

Comments
 (0)