Literal.php 479 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OC\DB\QueryBuilder;
  8. use OCP\DB\QueryBuilder\ILiteral;
  9. class Literal implements ILiteral {
  10. /** @var mixed */
  11. protected $literal;
  12. public function __construct($literal) {
  13. $this->literal = $literal;
  14. }
  15. public function __toString(): string {
  16. return (string) $this->literal;
  17. }
  18. }