CouldNotTranslateException.php 488 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Translation;
  8. /**
  9. * @since 27.0.0
  10. */
  11. class CouldNotTranslateException extends \RuntimeException {
  12. /**
  13. * @since 27.0.0
  14. */
  15. public function __construct(
  16. protected ?string $from,
  17. ) {
  18. parent::__construct();
  19. }
  20. /**
  21. * @since 27.0.0
  22. */
  23. public function getFrom(): ?string {
  24. return $this->from;
  25. }
  26. }