| 1 | <?php |
||
| 7 | class ConnectionBasedLockAdapter extends AbstractLockAdapter |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var ConnectionAdapterInterface |
||
| 11 | */ |
||
| 12 | protected $connectionAdapter; |
||
| 13 | |||
| 14 | public function __construct(ConnectionAdapterInterface $connectionAdapter) |
||
| 18 | |||
| 19 | public function isLocked(string $name): bool |
||
| 23 | |||
| 24 | public function acquireLock(string $name): bool |
||
| 37 | |||
| 38 | public function releaseLock(string $name): bool |
||
| 49 | |||
| 50 | protected function getLockFileName(string $lockName): string |
||
| 54 | } |
||
| 55 |