1
0

GenericResponse.php 567 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Http\WellKnown;
  8. use OCP\AppFramework\Http\Response;
  9. /**
  10. * @since 21.0.0
  11. */
  12. final class GenericResponse implements IResponse {
  13. /** @var Response */
  14. private $response;
  15. /**
  16. * @since 21.0.0
  17. */
  18. public function __construct(Response $response) {
  19. $this->response = $response;
  20. }
  21. /**
  22. * @since 21.0.0
  23. */
  24. public function toHttpResponse(): Response {
  25. return $this->response;
  26. }
  27. }