]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix undefined class "IAddressbook" on docs
authorJoas Schilling <coding@schilljs.com>
Mon, 22 Jun 2020 09:08:23 +0000 (11:08 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 22 Jun 2020 09:08:23 +0000 (11:08 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/ContactsManager.php

index 4084205b06d723e9e1365573e16894ad1776e882..0f041ca2e36ff2b1a26a95d773bc2db08af4e07a 100644 (file)
@@ -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();