nextcloud/lib/private/DB/QueryBuilder/Literal.php

24 lines
479 B
PHP
Raw Normal View History

<?php
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
2015-07-07 11:30:26 -04:00
namespace OC\DB\QueryBuilder;
2015-07-07 11:30:26 -04:00
use OCP\DB\QueryBuilder\ILiteral;
class Literal implements ILiteral {
2015-07-07 11:30:26 -04:00
/** @var mixed */
protected $literal;
2015-07-07 11:30:26 -04:00
public function __construct($literal) {
$this->literal = $literal;
}
public function __toString(): string {
2015-07-07 11:30:26 -04:00
return (string) $this->literal;
}
}