aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Accounts/TAccountsHelper.php
blob: 69d25d9a93370d38a17070c20d25ce5187a476f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

declare(strict_types=1);
/**
 * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OC\Accounts;

use OCP\Accounts\IAccountManager;

trait TAccountsHelper {
	/**
	 * returns whether the property is a collection
	 */
	protected function isCollection(string $propertyName): bool {
		return in_array(
			$propertyName,
			[
				IAccountManager::COLLECTION_EMAIL,
			],
			true
		);
	}
}