ISubscription.php 677 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Support\Subscription;
  8. /**
  9. * @since 17.0.0
  10. */
  11. interface ISubscription {
  12. /**
  13. * Indicates if a valid subscription is available
  14. *
  15. * @since 17.0.0
  16. */
  17. public function hasValidSubscription(): bool;
  18. /**
  19. * Indicates if the subscription has extended support
  20. *
  21. * @since 17.0.0
  22. */
  23. public function hasExtendedSupport(): bool;
  24. /**
  25. * Indicates if a hard user limit is reached and no new users should be created
  26. *
  27. * @since 21.0.0
  28. */
  29. public function isHardUserLimitReached(): bool;
  30. }