IValidator.php 416 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\RichObjectStrings;
  7. /**
  8. * Class Validator
  9. *
  10. * @since 11.0.0
  11. */
  12. interface IValidator {
  13. /**
  14. * @param string $subject
  15. * @param array[] $parameters
  16. * @throws InvalidObjectExeption
  17. * @since 11.0.0
  18. */
  19. public function validate($subject, array $parameters);
  20. }