Debian Codegraph @

lib/3rdParty/composer/illuminate/contracts/Cache/LockProvider.php

raw symbols SCIP
1 <?php
2
3 namespace Illuminate\Contracts\Cache;
4
5 interface LockProvider
6 {
7 /**
8 * Get a lock instance.
9 *
10 * @param string $name
11 * @param int $seconds
12 * @param string|null $owner
13 * @return \Illuminate\Contracts\Cache\Lock
14 */
15 public function lock($name, $seconds = 0, $owner = null);
16
17 /**
18 * Restore a lock instance using the owner identifier.
19 *
20 * @param string $name
21 * @param string $owner
22 * @return \Illuminate\Contracts\Cache\Lock
23 */
24 public function restoreLock($name, $owner);
25 }