1
0

IConversationOptions.php 539 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Talk;
  8. /**
  9. * @since 24.0.0
  10. */
  11. interface IConversationOptions {
  12. /**
  13. * Will the conversation be public?
  14. *
  15. * @return bool
  16. * @since 24.0.0
  17. */
  18. public function isPublic(): bool;
  19. /**
  20. * Make the new conversation public
  21. *
  22. * @param bool $isPublic
  23. *
  24. * @return $this
  25. * @since 24.0.0
  26. */
  27. public function setPublic(bool $isPublic = true): self;
  28. }