ICommentsManagerFactory.php 793 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCP\Comments;
  8. use OCP\IServerContainer;
  9. /**
  10. * Interface ICommentsManagerFactory
  11. *
  12. * This class is responsible for instantiating and returning an ICommentsManager
  13. * instance.
  14. *
  15. * @since 9.0.0
  16. */
  17. interface ICommentsManagerFactory {
  18. /**
  19. * Constructor for the comments manager factory
  20. *
  21. * @param IServerContainer $serverContainer server container
  22. * @since 9.0.0
  23. */
  24. public function __construct(IServerContainer $serverContainer);
  25. /**
  26. * creates and returns an instance of the ICommentsManager
  27. *
  28. * @return ICommentsManager
  29. * @since 9.0.0
  30. */
  31. public function getManager();
  32. }