mirror of
https://github.com/nextcloud/server.git
synced 2026-02-24 10:26:07 -05:00
26 lines
486 B
PHP
26 lines
486 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
namespace OC\DB\QueryBuilder;
|
|
|
|
use OCP\DB\QueryBuilder\ILiteral;
|
|
|
|
class Literal implements ILiteral {
|
|
/**
|
|
* @param mixed $literal
|
|
*/
|
|
public function __construct(
|
|
protected $literal,
|
|
) {
|
|
}
|
|
|
|
public function __toString(): string {
|
|
return (string)$this->literal;
|
|
}
|
|
}
|