IAppDataFactory.php 491 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\Files\AppData;
  7. use OCP\Files\IAppData;
  8. /**
  9. * A factory allows you to get the AppData folder for an application.
  10. *
  11. * @since 25.0.0
  12. */
  13. interface IAppDataFactory {
  14. /**
  15. * Get the AppData folder for the specified $appId
  16. * @param string $appId
  17. * @return IAppData
  18. * @since 25.0.0
  19. */
  20. public function get(string $appId): IAppData;
  21. }