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

21 lines
388 B
PHP

<?php
namespace Core\Driver\SQL;
use Core\Driver\SQL\Expression\Expression;
// Unsafe sql
class Keyword extends Expression {
private string $value;
public function __construct(string $value) {
$this->value = $value;
}
public function getValue(): string { return $this->value; }
function getExpression(SQL $sql, array &$params): string {
return $this->value;
}
}