diff options
Diffstat (limited to 'apps/contactsinteraction/lib/AddressBook.php')
-rw-r--r-- | apps/contactsinteraction/lib/AddressBook.php | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/apps/contactsinteraction/lib/AddressBook.php b/apps/contactsinteraction/lib/AddressBook.php index 1a024947362..518e39942d9 100644 --- a/apps/contactsinteraction/lib/AddressBook.php +++ b/apps/contactsinteraction/lib/AddressBook.php @@ -40,18 +40,13 @@ use Sabre\DAVACL\ACLTrait; use Sabre\DAVACL\IACL; class AddressBook extends ExternalAddressBook implements IACL { - public const URI = 'recent'; - use ACLTrait; - /** @var RecentContactMapper */ - private $mapper; - - /** @var IL10N */ - private $l10n; + public const URI = 'recent'; - /** @var string */ - private $principalUri; + private RecentContactMapper $mapper; + private IL10N $l10n; + private string $principalUri; public function __construct(RecentContactMapper $mapper, IL10N $l10n, @@ -81,7 +76,7 @@ class AddressBook extends ExternalAddressBook implements IACL { * @inheritDoc * @throws NotFound */ - public function getChild($name) { + public function getChild($name): Card { try { return new Card( $this->mapper->find( @@ -115,7 +110,7 @@ class AddressBook extends ExternalAddressBook implements IACL { /** * @inheritDoc */ - public function childExists($name) { + public function childExists($name): bool { try { $this->mapper->find( $this->getUid(), @@ -160,7 +155,7 @@ class AddressBook extends ExternalAddressBook implements IACL { /** * @inheritDoc */ - public function getACL() { + public function getACL(): array { return [ [ 'privilege' => '{DAV:}read', |