IAssertion.php 600 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Support\Subscription;
  8. use OCP\HintException;
  9. /**
  10. * @since 26.0.0
  11. */
  12. interface IAssertion {
  13. /**
  14. * This method throws a localized exception when user limits are exceeded,
  15. * if applicable. Notifications are also created in that case. It is a
  16. * shorthand for a check against IRegistry::delegateIsHardUserLimitReached().
  17. *
  18. * @throws HintException
  19. * @since 26.0.0
  20. */
  21. public function createUserIsLegit(): void;
  22. }