First Commit
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Query;
|
||||
|
||||
use Illuminate\Contracts\Database\Query\Expression as ExpressionContract;
|
||||
use Illuminate\Database\Grammar;
|
||||
|
||||
class Expression implements ExpressionContract
|
||||
{
|
||||
/**
|
||||
* The value of the expression.
|
||||
*
|
||||
* @var string|int|float
|
||||
*/
|
||||
protected $value;
|
||||
|
||||
/**
|
||||
* Create a new raw query expression.
|
||||
*
|
||||
* @param string|int|float $value
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($value)
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value of the expression.
|
||||
*
|
||||
* @param \Illuminate\Database\Grammar $grammar
|
||||
* @return string|int|float
|
||||
*/
|
||||
public function getValue(Grammar $grammar)
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user