| 1 | <?php  | 
            ||
| 7 | class StorageBasedLockAdapter extends AbstractLockAdapter  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * @var StorageAdapterInterface  | 
            ||
| 11 | */  | 
            ||
| 12 | protected $storageAdapter;  | 
            ||
| 13 | |||
| 14 | public function __construct(StorageAdapterInterface $storageAdapter)  | 
            ||
| 18 | |||
| 19 | protected function doGetLock(string $name): ?Lock  | 
            ||
| 28 | |||
| 29 | protected function doAcquireLock(string $name, int $timeout = null): bool  | 
            ||
| 60 | |||
| 61 | protected function doReleaseLock(string $name): void  | 
            ||
| 65 | |||
| 66 | protected function getLockFileName(string $lockName): string  | 
            ||
| 70 | }  | 
            ||
| 71 |