Fix undefined class "IAddressbook" on docs

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-06-22 11:08:23 +02:00
parent b5e6b90584
commit 7ed79b64b4
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 8 additions and 6 deletions

View File

@ -31,6 +31,8 @@
namespace OC { namespace OC {
use OCP\IAddressBook;
class ContactsManager implements \OCP\Contacts\IManager { 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; $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()]); 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 = []; private $addressBooks = [];
@ -186,7 +188,7 @@ namespace OC {
* Get (and load when needed) the address book for $key * Get (and load when needed) the address book for $key
* *
* @param string $addressBookKey * @param string $addressBookKey
* @return \OCP\IAddressBook * @return IAddressBook
*/ */
protected function getAddressBook($addressBookKey) { protected function getAddressBook($addressBookKey) {
$this->loadAddressBooks(); $this->loadAddressBooks();