2015-07-06 06:00:01 -04:00
|
|
|
<?php
|
2024-05-23 03:26:56 -04:00
|
|
|
|
2026-02-09 04:53:58 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2015-07-06 06:00:01 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-07-06 06:00:01 -04:00
|
|
|
*/
|
2015-07-07 11:30:26 -04:00
|
|
|
namespace OC\DB\QueryBuilder;
|
2015-07-06 06:00:01 -04:00
|
|
|
|
2015-07-07 11:30:26 -04:00
|
|
|
use OCP\DB\QueryBuilder\IParameter;
|
2015-07-06 06:00:01 -04:00
|
|
|
|
2015-07-07 11:30:26 -04:00
|
|
|
class Parameter implements IParameter {
|
2025-11-17 09:32:54 -05:00
|
|
|
/**
|
|
|
|
|
* @param mixed $name
|
|
|
|
|
*/
|
|
|
|
|
public function __construct(
|
|
|
|
|
protected $name,
|
|
|
|
|
) {
|
2015-07-07 11:30:26 -04:00
|
|
|
}
|
2015-07-06 06:00:01 -04:00
|
|
|
|
2024-04-02 11:13:35 -04:00
|
|
|
public function __toString(): string {
|
2015-07-07 11:30:26 -04:00
|
|
|
return (string)$this->name;
|
|
|
|
|
}
|
2015-07-06 06:00:01 -04:00
|
|
|
}
|