1
0

IRichTextFormatter.php 575 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\RichObjectStrings;
  8. /**
  9. * Parse rich text and format it with the richobjects
  10. *
  11. * @since 31.0.0
  12. */
  13. interface IRichTextFormatter {
  14. /**
  15. * @since 31.0.0
  16. * @param string $message
  17. * @param array<string,array<string,string>> $parameters
  18. * @throws \InvalidArgumentException if a parameter has no name or no type
  19. */
  20. public function richToParsed(string $message, array $parameters): string;
  21. }