[Lock] Fix incorrect phpdoc

This commit is contained in:
Robin Chalas 2017-12-11 10:12:53 +01:00
parent d21aa19e4d
commit 8be950f3a4

View File

@ -24,8 +24,6 @@ interface StoreInterface
/**
* Stores the resource if it's not locked by someone else.
*
* @param Key $key key to lock
*
* @throws LockConflictedException
*/
public function save(Key $key);
@ -35,8 +33,6 @@ interface StoreInterface
*
* If the store does not support this feature it should throw a NotSupportedException.
*
* @param Key $key key to lock
*
* @throws LockConflictedException
* @throws NotSupportedException
*/
@ -47,7 +43,6 @@ interface StoreInterface
*
* If the store does not support this feature it should throw a NotSupportedException.
*
* @param Key $key key to lock
* @param float $ttl amount of second to keep the lock in the store
*
* @throws LockConflictedException
@ -57,16 +52,12 @@ interface StoreInterface
/**
* Removes a resource from the storage.
*
* @param Key $key key to remove
*/
public function delete(Key $key);
/**
* Returns whether or not the resource exists in the storage.
*
* @param Key $key key to remove
*
* @return bool
*/
public function exists(Key $key);