1<?php
2
3namespace Sabre\CalDAV\Principal;
4
5use Sabre\DAVACL;
6
7/**
8 * Principal collection
9 *
10 * This is an alternative collection to the standard ACL principal collection.
11 * This collection adds support for the calendar-proxy-read and
12 * calendar-proxy-write sub-principals, as defined by the caldav-proxy
13 * specification.
14 *
15 * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
16 * @author Evert Pot (http://evertpot.com/)
17 * @license http://sabre.io/license/ Modified BSD License
18 */
19class Collection extends DAVACL\PrincipalCollection {
20
21    /**
22     * Returns a child object based on principal information
23     *
24     * @param array $principalInfo
25     * @return User
26     */
27    function getChildForPrincipal(array $principalInfo) {
28
29        return new User($this->principalBackend, $principalInfo);
30
31    }
32
33}
34