This commit is contained in:
LayFi.de
2025-01-27 20:49:47 +08:00
commit 4f3242bca7
2745 changed files with 309418 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
<?php
namespace Illuminate\Database\Query;
use Illuminate\Contracts\Database\Query\Expression as ExpressionContract;
use Illuminate\Database\Grammar;
/**
* @template TValue of string|int|float
*/
class Expression implements ExpressionContract
{
/**
* Create a new raw query expression.
*
* @param TValue $value
* @return void
*/
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;
}
}