web-base/Core/Driver/SQL/Keyword.class.php

21 lines
388 B
PHP
Raw Permalink Normal View History

2020-04-02 00:02:51 +02:00
<?php
2022-11-18 18:06:46 +01:00
namespace Core\Driver\SQL;
2020-04-02 00:02:51 +02:00
2022-11-18 18:06:46 +01:00
use Core\Driver\SQL\Expression\Expression;
2021-04-08 19:08:05 +02:00
// Unsafe sql
2021-04-08 19:08:05 +02:00
class Keyword extends Expression {
2020-04-02 00:02:51 +02:00
2020-04-03 17:39:58 +02:00
private string $value;
2020-04-02 00:02:51 +02:00
2021-04-02 21:58:06 +02:00
public function __construct(string $value) {
2020-04-02 00:02:51 +02:00
$this->value = $value;
}
2021-04-02 21:58:06 +02:00
public function getValue(): string { return $this->value; }
2020-04-02 00:02:51 +02:00
function getExpression(SQL $sql, array &$params): string {
return $this->value;
}
2020-04-03 17:39:58 +02:00
}