This commit is contained in:
2026-05-01 23:40:14 +08:00
commit b8f599a617
3867 changed files with 478663 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
namespace Illuminate\Database\Query;
use Illuminate\Contracts\Database\Query\Expression as ExpressionContract;
use Illuminate\Database\Grammar;
/**
* @template TValue of literal-string|int|float
*/
class Expression implements ExpressionContract
{
/**
* Create a new raw query expression.
*
* @param TValue $value
*/
public function __construct(
protected $value,
) {
}
/**
* Get the value of the expression.
*
* @param \Illuminate\Database\Grammar $grammar
* @return TValue
*/
public function getValue(Grammar $grammar)
{
return $this->value;
}
}