contactsIntegration = $ci; } public function findMatches(string $mail): array { $matches = $this->contactsIntegration->getContactsWithMail($mail); return $matches; } public function addEMailToContact(string $uid, string $mail): ?array { return $this->contactsIntegration->addEmailToContact($uid, $mail); } public function newContact(string $name, string $mail): ?array { return $this->contactsIntegration->newContact($name, $mail); } public function autoComplete(string $term): array { return $this->contactsIntegration->getContactsWithName($term); } }