aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/Principal/Collection.php
blob: f2cea0b513644f7261893abd78949b62c51eb3b4 (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
<?php
/**
 * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OCA\DAV\CalDAV\Principal;

/**
 * Class Collection
 *
 * @package OCA\DAV\CalDAV\Principal
 */
class Collection extends \Sabre\CalDAV\Principal\Collection {

	/**
	 * Returns a child object based on principal information
	 *
	 * @param array $principalInfo
	 * @return User
	 */
	public function getChildForPrincipal(array $principalInfo) {
		return new User($this->principalBackend, $principalInfo);
	}
}