diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-06-05 17:30:45 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-06-05 17:30:45 +0200 |
commit | 0c9604e3b2b44885647e2bc2edda95329fddbf47 (patch) | |
tree | d05c918de3ae7e2d03de1dc72754883c59637dc5 /lib/public/lock/ilockingprovider.php | |
parent | 9899e10a0411d161db1b4e1302690ac74c1ae72c (diff) | |
download | nextcloud-server-0c9604e3b2b44885647e2bc2edda95329fddbf47.tar.gz nextcloud-server-0c9604e3b2b44885647e2bc2edda95329fddbf47.zip |
[OCP] update PHPdoc to contain correct @since tags
Diffstat (limited to 'lib/public/lock/ilockingprovider.php')
-rw-r--r-- | lib/public/lock/ilockingprovider.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/public/lock/ilockingprovider.php b/lib/public/lock/ilockingprovider.php index 6a963b9d7aa..fd2aa615452 100644 --- a/lib/public/lock/ilockingprovider.php +++ b/lib/public/lock/ilockingprovider.php @@ -21,14 +21,27 @@ namespace OCP\Lock; +/** + * Interface ILockingProvider + * + * @package OCP\Lock + * @since 8.1.0 + */ interface ILockingProvider { + /** + * @since 8.1.0 + */ const LOCK_SHARED = 1; + /** + * @since 8.1.0 + */ const LOCK_EXCLUSIVE = 2; /** * @param string $path * @param int $type self::LOCK_SHARED or self::LOCK_EXCLUSIVE * @return bool + * @since 8.1.0 */ public function isLocked($path, $type); @@ -36,12 +49,14 @@ interface ILockingProvider { * @param string $path * @param int $type self::LOCK_SHARED or self::LOCK_EXCLUSIVE * @throws \OCP\Lock\LockedException + * @since 8.1.0 */ public function acquireLock($path, $type); /** * @param string $path * @param int $type self::LOCK_SHARED or self::LOCK_EXCLUSIVE + * @since 8.1.0 */ public function releaseLock($path, $type); @@ -51,11 +66,13 @@ interface ILockingProvider { * @param string $path * @param int $targetType self::LOCK_SHARED or self::LOCK_EXCLUSIVE * @throws \OCP\Lock\LockedException + * @since 8.1.0 */ public function changeLock($path, $targetType); /** * release all lock acquired by this instance + * @since 8.1.0 */ public function releaseAll(); } |