1
0

QueryFunction.php 503 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\IQueryFunction;
  9. class QueryFunction implements IQueryFunction {
  10. /** @var string */
  11. protected $function;
  12. public function __construct($function) {
  13. $this->function = $function;
  14. }
  15. public function __toString(): string {
  16. return (string) $this->function;
  17. }
  18. }