1
0

TAccountsHelper.php 470 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\Accounts;
  8. use OCP\Accounts\IAccountManager;
  9. trait TAccountsHelper {
  10. /**
  11. * returns whether the property is a collection
  12. */
  13. protected function isCollection(string $propertyName): bool {
  14. return in_array(
  15. $propertyName,
  16. [
  17. IAccountManager::COLLECTION_EMAIL,
  18. ],
  19. true
  20. );
  21. }
  22. }