Collection.php 550 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\DAV\CalDAV\Principal;
  7. /**
  8. * Class Collection
  9. *
  10. * @package OCA\DAV\CalDAV\Principal
  11. */
  12. class Collection extends \Sabre\CalDAV\Principal\Collection {
  13. /**
  14. * Returns a child object based on principal information
  15. *
  16. * @param array $principalInfo
  17. * @return User
  18. */
  19. public function getChildForPrincipal(array $principalInfo) {
  20. return new User($this->principalBackend, $principalInfo);
  21. }
  22. }