1
0

CouldNotTranslateException.php 510 B

1234567891011121314151617181920212223242526272829303132
  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. * @deprecated 30.0.0
  11. */
  12. class CouldNotTranslateException extends \RuntimeException {
  13. /**
  14. * @since 27.0.0
  15. */
  16. public function __construct(
  17. protected ?string $from,
  18. ) {
  19. parent::__construct();
  20. }
  21. /**
  22. * @since 27.0.0
  23. */
  24. public function getFrom(): ?string {
  25. return $this->from;
  26. }
  27. }