summaryrefslogtreecommitdiffstats
path: root/lib/private/ContactsManager.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-22 11:08:23 +0200
committerJoas Schilling <coding@schilljs.com>2020-06-22 11:08:23 +0200
commit7ed79b64b43b3ca3fd2c04d68caa0b873d7b647e (patch)
treeb07deadc7b9c75f063ef9a93b8bdb75920fd4353 /lib/private/ContactsManager.php
parentb5e6b90584504f169bd6d74e481ebe744529352f (diff)
downloadnextcloud-server-7ed79b64b43b3ca3fd2c04d68caa0b873d7b647e.tar.gz
nextcloud-server-7ed79b64b43b3ca3fd2c04d68caa0b873d7b647e.zip
Fix undefined class "IAddressbook" on docs
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/ContactsManager.php')
-rw-r--r--lib/private/ContactsManager.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/private/ContactsManager.php b/lib/private/ContactsManager.php
index 4084205b06d..0f041ca2e36 100644
--- a/lib/private/ContactsManager.php
+++ b/lib/private/ContactsManager.php
@@ -31,6 +31,8 @@
namespace OC {
+ use OCP\IAddressBook;
+
class ContactsManager implements \OCP\Contacts\IManager {
/**
@@ -112,16 +114,16 @@ namespace OC {
}
/**
- * @param \OCP\IAddressBook $addressBook
+ * @param IAddressBook $addressBook
*/
- public function registerAddressBook(\OCP\IAddressBook $addressBook) {
+ public function registerAddressBook(IAddressBook $addressBook) {
$this->addressBooks[$addressBook->getKey()] = $addressBook;
}
/**
- * @param \OCP\IAddressBook $addressBook
+ * @param IAddressBook $addressBook
*/
- public function unregisterAddressBook(\OCP\IAddressBook $addressBook) {
+ public function unregisterAddressBook(IAddressBook $addressBook) {
unset($this->addressBooks[$addressBook->getKey()]);
}
@@ -163,7 +165,7 @@ namespace OC {
}
/**
- * @var \OCP\IAddressBook[] which holds all registered address books
+ * @var IAddressBook[] which holds all registered address books
*/
private $addressBooks = [];
@@ -186,7 +188,7 @@ namespace OC {
* Get (and load when needed) the address book for $key
*
* @param string $addressBookKey
- * @return \OCP\IAddressBook
+ * @return IAddressBook
*/
protected function getAddressBook($addressBookKey) {
$this->loadAddressBooks();