| 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 | protected function doesLockExist(string $name): bool |
||
| 23 | |||
| 24 | protected function doAcquireLock(string $name): bool |
||
| 38 | |||
| 39 | protected function doReleaseLock(string $name) |
||
| 43 | |||
| 44 | protected function getLockFileName(string $lockName): string |
||
| 48 | } |
||
| 49 |